C# Class Rock.Security.ExternalAuthentication.Twitter

Inheritance: AuthenticationComponent
Afficher le fichier Open project: NewSpring/Rock

Méthodes publiques

Méthode Description
Authenticate ( HttpRequest request, string &username, string &returnUrl ) : System.Boolean

Authenticates the specified request.

Authenticate ( UserLogin user, string password ) : bool

Authenticates the user based on user name and password

ChangePassword ( UserLogin user, string oldPassword, string newPassword, string &warningMessage ) : bool

Changes the password.

EncodePassword ( UserLogin user, string password ) : string

Encodes the password.

GenerateLoginUrl ( HttpRequest request ) : Uri

Generates the login URL.

GetTwitterUser ( dynamic twitterUser, string accessToken = "" ) : string

Gets the name of the Twitter user.

ImageUrl ( ) : String

Gets the URL of an image that should be displayed.

IsReturningFromAuthentication ( HttpRequest request ) : System.Boolean

Tests the Http Request to determine if authentication should be tested by this authentication provider.

RequestToken ( string redirectUri ) : void

Gets the request token.

SetPassword ( UserLogin user, string password ) : void

Sets the password.

Private Methods

Méthode Description
GetRedirectUrl ( HttpRequest request ) : string

Gets the redirect URL.

Method Details

Authenticate() public méthode

Authenticates the specified request.
public Authenticate ( HttpRequest request, string &username, string &returnUrl ) : System.Boolean
request HttpRequest The request.
username string The username.
returnUrl string The return URL.
Résultat System.Boolean

Authenticate() public méthode

Authenticates the user based on user name and password
public Authenticate ( UserLogin user, string password ) : bool
user UserLogin The user.
password string The password.
Résultat bool

ChangePassword() public méthode

Changes the password.
public ChangePassword ( UserLogin user, string oldPassword, string newPassword, string &warningMessage ) : bool
user UserLogin The user.
oldPassword string The old password.
newPassword string The new password.
warningMessage string The warning message.
Résultat bool

EncodePassword() public méthode

Encodes the password.
public EncodePassword ( UserLogin user, string password ) : string
user UserLogin The user.
password string The password.
Résultat string

GenerateLoginUrl() public méthode

Generates the login URL.
public GenerateLoginUrl ( HttpRequest request ) : Uri
request HttpRequest Forming the URL to obtain user consent
Résultat System.Uri

GetTwitterUser() public static méthode

Gets the name of the Twitter user.
public static GetTwitterUser ( dynamic twitterUser, string accessToken = "" ) : string
twitterUser dynamic The Twitter user.
accessToken string The access token.
Résultat string

ImageUrl() public méthode

Gets the URL of an image that should be displayed.
public ImageUrl ( ) : String
Résultat String

IsReturningFromAuthentication() public méthode

Tests the Http Request to determine if authentication should be tested by this authentication provider.
public IsReturningFromAuthentication ( HttpRequest request ) : System.Boolean
request HttpRequest The request.
Résultat System.Boolean

RequestToken() public méthode

Gets the request token.
public RequestToken ( string redirectUri ) : void
redirectUri string The redirect URI.
Résultat void

SetPassword() public méthode

Sets the password.
public SetPassword ( UserLogin user, string password ) : void
user UserLogin The user.
password string The password.
Résultat void