C# Класс Rock.Security.ExternalAuthentication.Facebook

Наследование: AuthenticationComponent
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

GetFacebookUserName ( FacebookUser facebookUser, bool syncFriends = false, string accessToken = "" ) : string

Gets the name of the facebook 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.

SetPassword ( UserLogin user, string password ) : void

Sets the password.

Приватные методы

Метод Описание
GetRedirectUrl ( HttpRequest request ) : string

Описание методов

Authenticate() публичный Метод

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.
Результат System.Boolean

Authenticate() публичный Метод

Authenticates the user based on user name and password
public Authenticate ( UserLogin user, string password ) : bool
user UserLogin The user.
password string The password.
Результат bool

ChangePassword() публичный Метод

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.
Результат bool

EncodePassword() публичный Метод

Encodes the password.
public EncodePassword ( UserLogin user, string password ) : string
user UserLogin The user.
password string The password.
Результат string

GenerateLoginUrl() публичный Метод

Generates the login URL.
public GenerateLoginUrl ( HttpRequest request ) : Uri
request HttpRequest The request.
Результат System.Uri

GetFacebookUserName() публичный статический Метод

Gets the name of the facebook user.
public static GetFacebookUserName ( FacebookUser facebookUser, bool syncFriends = false, string accessToken = "" ) : string
facebookUser FacebookUser The facebook user.
syncFriends bool if set to true [synchronize friends].
accessToken string The access token.
Результат string

ImageUrl() публичный Метод

Gets the URL of an image that should be displayed.
public ImageUrl ( ) : String
Результат String

IsReturningFromAuthentication() публичный Метод

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.
Результат System.Boolean

SetPassword() публичный Метод

Sets the password.
public SetPassword ( UserLogin user, string password ) : void
user UserLogin The user.
password string The password.
Результат void