Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 4 Next »

WCF

 

Method
 AuthServerSessionTokensResponseCreate CreateSessionToken(string authServerPartnerLoginName,
            string authServerPartnerLoginPassword,
            string authServerPartnerUserLoginName,
            string authServerPartnerUserLoginPassword,
            short durationMinutes,
            int tokenType);
WCF parameterdata typedescription
authServerPartnerLoginNamestringSurePassId account login name
authServerPartnerLoginPasswordstringSurePassId account login key
authServerPartnerUserLoginNamestringUser account login name
durationMinutesshortLength of time before the token expires
tokenTypeint0=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 parameterdata typedescription
spAccountLoginNamestringSurePassId account login name
spAccountLoginKeystringSurePassId account login key
usernamestringuser account login name
typestringcreate_session_token
durationMinutesshortdurationMinutes
tokenTypeint0=SurePassSso, 1= SurePassMobile
Sample REST/Json Method
 
Sample REST/Json Response
 

 

 

  • No labels