getUserAuthPackage() Method

Table of Contents

  1. Function
  2. Syntax
  3. Parameters
  4. Return Value
  5. Sample Code
  6. Remarks
  7. Possible Errors
  8. Related Methods

Function

  • Returns an MSS operator identification package for known trusted Vendor relationships. This method can be used to implement an MSS Single Sign-On session when used in conjunction with getPreAuthUserLoginURL

Syntax

  • TAeAuthenticationPackage = AeXMLBridge.getUserAuthPackage(TAeAuthenticationPackage);

Parameters

Return Value

Sample Code

C#

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

TAeAuthenticationPackage authenticationPackage = new TAeAuthenticationPackage()
{
DomainAccount = txtUserID.Text.Trim(),
Password = txtPassword.Text.Trim(),
VendorToken = txtTokenID.Text.Trim(),
PreAuthAction = Convert.ToInt32(txtTokenPassword.Text.Trim())
};

try
{
authenticationPackage = webServices.getUserAuthPackage(authenticationPackage);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "getUserAuthPackage Error");
}

VB.Net
```VB
Dim authenticationPackage As TAeAuthenticationPackage = New TAeAuthenticationPackage() With
{
.DomainAccount = txtUserID.Text.Trim(),
.Password = txtPassword.Text.Trim(),
.VendorToken = txtTokenID.Text.Trim(),
.PreAuthAction = Convert.ToInt32(txtTokenPassword.Text.Trim())
}

Try
authenticationPackage = webServices.getUserAuthPackage(authenticationPackage)
Catch ex As Exception
MessageBox.Show(ex.Message, "getUserAuthPackage Error")
End Try

Remarks

  • minimum fields required for successful operation are DomainAccount/Password/AuthType/PreAuthAction/Vendor
  • Only the SendBackPackage is required to implement Single Sign-On. The remaining fields are for informational purposes only.

Possible Errors

  • User Account does not exist

getPreAuthUserLoginURL
getUserGroupsSimple

Back to Top