C# Класс Rock.Security.AuthenticationComponent

Base class for components that perform authentication based on a username and password entered by the user
Наследование: Rock.Extension.Component
Показать файл Открыть проект

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

Метод Описание
Authenticate ( HttpRequest request, string &userName, string &returnUrl ) : System.Boolean

Authenticates the user based on a request from a third-party provider. Will set the username and returnUrl values.

Authenticate ( UserLogin user, string password ) : System.Boolean

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.

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.

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

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

Authenticates the user based on a request from a third-party provider. Will set the username and returnUrl values.
public abstract Authenticate ( HttpRequest request, string &userName, string &returnUrl ) : System.Boolean
request System.Web.HttpRequest The request.
userName string Name of the user.
returnUrl string The return URL.
Результат System.Boolean

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

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

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

Changes the password.
public abstract 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 abstract EncodePassword ( UserLogin user, string password ) : String
user UserLogin The user.
password string The password.
Результат String

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

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

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

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

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

Tests the Http Request to determine if authentication should be tested by this authentication provider.
public abstract IsReturningFromAuthentication ( HttpRequest request ) : System.Boolean
request System.Web.HttpRequest The request.
Результат System.Boolean

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

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