public static bool ValidatToken(string token) { SSOValidate.AuthTokenServiceSoapClient authTokenServiceSoapClient = new SSOValidate.AuthTokenServiceSoapClient(); var result = authTokenServiceSoapClient.ValidateToken(token); return(result != null); }
public static SSO.SSOValidate.SSOUser GetUserInfoByToken(string token) { SSOValidate.AuthTokenServiceSoapClient authTokenServiceSoapClient = new SSOValidate.AuthTokenServiceSoapClient(); var result = authTokenServiceSoapClient.ValidateToken(token); if (result != null) { return(result.User); } return(null); }