Skip to end of metadata
Go to start of metadata

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

Compare with Current View Page History

« Previous Version 3 Next »

WCF

IsSessinTokenValid method
AuthServerSessionTokensResponse IsSessionTokenValid(string authServerPartnerLoginName,
            string authServerPartnerLoginPassword,
            string authServerPartnerUserLoginName,
            string sessionTokenId);

 

 

WCF parameterdata typedescription
authServerPartnerLoginNamestringSurePassId account login name
authServerPartnerLoginPasswordstringSurePassId account login key
authServerPartnerUserLoginNamestringOptional user account login name. Can be left blank
sessionTokenIdstringThe tokenId to be checked for validity. The tokenId is returned to the user following the CreateSessionToken method
Sample WCF C# Method
  AuthServerSessionTokensResponse resp = IsSessionTokenValid("accountLogin",
            "accountKey",
            string.Empty,
            "245dwfweee**fwerwrfwdd4");
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
usernamestringoptional user account login name
typestringis_session_token_valid
sessionTokenIdstringThe tokenId to be checked for validity. The tokenId is returned to the user following the CreateSessionToken method
Sample REST/Json Method
 {
  "username": "Mark",
  "spAccountLoginName": "Tiera",
  "spAccountLoginKey": "PW",
  "type": "is_session_token_valid",
  "sessionTokenId": "234234gedf46776547dddd6y54765yerwf"
}
Sample REST/Json Response
 {
  "errorCode": 0,
  "errorMessage": "OK",
  "type": "is_session_token_valid"
}

 

 

  • No labels