The OTDS package provides services for manipulating authentication with Open Text Directory Services. It is advised to use the OScript entry points as defined in the OTDSIntegration:Root:ClientUtils object when possible. The major functionalities offered in the OTDS Package are the following:
Boolean Connect( CAPILOGIN login )
Opens a connection to the configured OTDS server if no connection exists.
login | - | A valid CAPILOGIN object. |
Boolean Disconnect()
Closes the existing connection to the OTDS server.
RecArray GetResources( String filter )
Queries the connected OTDS server for all it’s available resources narrowing the scope using the specified filter.
filter | - | A filter narrowing the scope of search. |
CommonName | - | String |
DisplayName | - | String |
URI | - | String |
Location | - | String |
ConnectionParam | - | String |
FieldMapping | - | String |
ResourceState | - | String |
ResourceType | - | String |
ResourceID | - | String |
IsActivated | - | Boolean |
String LoginRequestTicketForResource( String username, String password, String resourceID )
Returns an encoded ticket for authenticated username and password on the specified resourceID.
username | - | A valid OTDS username |
password | - | A valid OTDS password |
resourceID | - | A valid OTDS resourceID |
String Port()
Returns the currently registered OTDS port.
String RequestTicketForUser( String username, String resourceID, String ticket )
Returns an encoded ticket for the specified resourceID while impersonating username. Requires the existing user's ticket. For Anonymous authentication the ticket can be Undefined.
username | - | A user to impersonate on the target resourceID. |
resourceID | - | A valid OTDS target resourceID |
ticket | - | An OPTIONAL parameter. A valid, authenticated OTDS ticket, or Undefined for Anonymous authentication. |
String RequestTicketForResource( String token, String resourceID )
Returns an encoded ticket for the specified resourceID. Requires the existing users encoded token generated from an original ticket validation.
token | - | A valid token generated from the validation of an OTDS ticket. |
resourceID | - | A valid OTDS resourceID |
String SSOCookieDomain()
Returns the current OTDS single sign on cookie domain.
Assoc ValidateTicket( String ticket )
Validate an incoming ticket for the currently connected resource.
ticket | - | A valid OTDS encoded ticket. |
Token | - | String |
CipherText | - | Bytes [CipherText is used to request OTDS Tickets] |
ResourceID | - | String |
UserID | - | String |
IsValid | - | Boolean |
CredentialUserName | - | String |
CredentialPassword | - | String |