/
Create Session Token
Create Session Token
WCF
Method
AuthServerSessionTokensResponseCreate CreateSessionToken(string authServerPartnerLoginName, string authServerPartnerLoginPassword, string authServerPartnerUserLoginName, string authServerPartnerUserLoginPassword, short durationMinutes, int tokenType);
WCF parameter | data type | description |
---|---|---|
authServerPartnerLoginName | string | SurePassID account login name |
authServerPartnerLoginPassword | string | SurePassID account login key |
authServerPartnerUserLoginName | string | User account login name |
durationMinutes | short | Length of time before the token expires |
tokenType | int | 0=SurePass Sso, 1= SurePass Mobile |
Sample WCF C# Method
AuthServerSessionTokensResponseCreate resp = CreateSessionToken("accountLogin", "accountKey", "Mandy, string.Empty, 30, 1);
Sample WCF C# Repsonse
if (resp.ErrorCode != 0) { message.Text = resp.ErrorMsg; return false; }
REST
REST parameter | data type | description |
---|---|---|
spAccountLoginName | string | SurePassID account login name |
spAccountLoginKey | string | SurePassID account login key |
username | string | user account login name |
type | string | create_session_token |
pw | string | optional password for the account |
sessionTokenDurationMinutes | string | durationMinutes |
sessionTokenType | string | 0=SurePassSso, 1= SurePassMobile |
Sample REST/Json Method
{ "username": "Mandy", "spAccountLoginName": "accountLogin", "spAccountLoginKey": "accountKey", "type": "create_session_token", "pw": "", "sessionTokenDurationMinutes": "30", "sessionTokenType": "0", }
Sample REST/Json Response
{ "errorCode": 0, "errorMessage": "OK", "type": "create_session_token" }
Related content
Is Session Token Valid
Is Session Token Valid
More like this
Send Passcode (One Time Passcode)
Send Passcode (One Time Passcode)
More like this
Expire Session Token
Expire Session Token
More like this
Activate OATH Device
Activate OATH Device
More like this
Enable Device
Enable Device
More like this
Receive Push Response
Receive Push Response
More like this