Beispiel #1
0
        public static bool ValidatToken(string token)
        {
            SSOValidate.AuthTokenServiceSoapClient authTokenServiceSoapClient = new SSOValidate.AuthTokenServiceSoapClient();
            var result = authTokenServiceSoapClient.ValidateToken(token);

            return(result != null);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 public static string GetToken(string userName, string password)
 {
     SSOValidate.AuthTokenServiceSoapClient authTokenServiceSoapClient = new SSOValidate.AuthTokenServiceSoapClient();
     return(authTokenServiceSoapClient.GetToken(userName, password));
 }