Implemented ReceiveRelease_API.
Added OI Wizard Webview form to launch into OI Wizard from OI and auto-login the user. Added menu items to NDW_MAIN to launch the OI Wizard webview form and navigated to the appropriate page.
This commit is contained in:
@ -117,11 +117,24 @@ API oiwizard.POST
|
||||
ParseResponse = SRP_JSON(hWizardJSON, 'PARSE', WizardJSON)
|
||||
If (ParseResponse EQ '') then
|
||||
// Validate credentials and create a new session
|
||||
UserID = SRP_JSON(hWizardJSON, 'GetValue', 'userID')
|
||||
Password = SRP_JSON(hWizardJSON, 'GetValue', 'password')
|
||||
UserID = SRP_JSON(hWizardJSON, 'GetValue', 'userID')
|
||||
Password = SRP_JSON(hWizardJSON, 'GetValue', 'password')
|
||||
ADUsername = SRP_JSON(hWizardJSON, 'GetValue', 'adUsername')
|
||||
SRP_JSON(hWizardJSON, 'Release')
|
||||
Authenticated = Active_Directory_Services('AuthenticateUser', UserID, Password, 'Infineon')
|
||||
If Authenticated then
|
||||
Domain = 'Infineon'
|
||||
Begin Case
|
||||
Case ( (UserID NE '') and (Password NE '') )
|
||||
Authenticated = Active_Directory_Services('AuthenticateUser', UserID, Password, Domain)
|
||||
Authorized = Active_Directory_Services('AuthorizeUser', UserID, Domain)
|
||||
Case (ADUsername NE '')
|
||||
Authenticated = True$
|
||||
Authorized = Active_Directory_Services('AuthorizeUser', ADUsername, Domain)
|
||||
If Authorized then UserId = ADUsername
|
||||
Case Otherwise$
|
||||
Authenticated = False$
|
||||
Authorized = False$
|
||||
End Case
|
||||
If Authenticated and Authorized then
|
||||
LSLUserID = Security_Services('GetLSLUser', UserID)
|
||||
If LSLUserID NE '' then
|
||||
OIWizardID = OI_Wizard_Services('CreateWizardID', LSLUserID)
|
||||
@ -235,3 +248,4 @@ API oiwizard.checkidleoisessionvalid.GET
|
||||
end
|
||||
|
||||
end api
|
||||
|
||||
|
||||
Reference in New Issue
Block a user