WCF
IsSessinTokenValid method
AuthServerSessionTokensResponse IsSessionTokenValid(string authServerPartnerLoginName, string authServerPartnerLoginPassword, string authServerPartnerUserLoginName, string sessionTokenId);
WCF parameter | data type | description |
---|---|---|
authServerPartnerLoginName | string | SurePassId account login name |
authServerPartnerLoginPassword | string | SurePassId account login key |
authServerPartnerUserLoginName | string | User account login name |
sessionTokenId | string | The 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", "Mandy", "245dwfweee**fwerwrfwdd4");
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 | is_session_token_valid |
sessionTokenId | string | The tokenId to be checked for validity. The tokenId is returned to the user following the CreateSessionToken method |
Sample REST/Json Method
Sample REST/Json Response