AuthenticateUserByToken() public method

public AuthenticateUserByToken ( string token, string ip = "127.0.0.1" ) : AuthenticationResult
token string
ip string
return AuthenticationResult
Ejemplo n.º 1
0
        public ValidTokenLogin()
        {
            //register the new user...
              var app = new Application("*****@*****.**", "password", "password");
              var result = new Registrator().ApplyForMembership(app);

              var auth = new Authenticator();
              _result = auth.AuthenticateUserByToken(result.NewUser.AuthenticationToken.ToString());
        }