C# Class Rock.Security.Authentication.ActiveDirectory

Inheritance: AuthenticationComponent
Show file Open project: NewSpring/Rock

Public Methods

Method Description
Authenticate ( System request, string &userName, string &returnUrl ) : bool

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

Authenticate ( UserLogin user, string password ) : bool

Authenticates the specified 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 ( System request ) : Uri

Generates the login URL.

ImageUrl ( ) : string

Gets the URL of an image that should be displayed.

IsReturningFromAuthentication ( System request ) : bool

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

SetPassword ( UserLogin user, string password ) : void

Sets the password.

Method Details

Authenticate() public method

Authenticates the user based on a request from a third-party provider. Will set the username and returnUrl values.
public Authenticate ( System request, string &userName, string &returnUrl ) : bool
request System The request.
userName string Name of the user.
returnUrl string The return URL.
return bool

Authenticate() public method

Authenticates the specified user name and password
public Authenticate ( UserLogin user, string password ) : bool
user UserLogin The user.
password string The password.
return bool

ChangePassword() public method

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.
return bool

EncodePassword() public method

Encodes the password.
public EncodePassword ( UserLogin user, string password ) : string
user UserLogin The user.
password string
return string

GenerateLoginUrl() public method

Generates the login URL.
public GenerateLoginUrl ( System request ) : Uri
request System The request.
return System.Uri

ImageUrl() public method

Gets the URL of an image that should be displayed.
public ImageUrl ( ) : string
return string

IsReturningFromAuthentication() public method

Tests the Http Request to determine if authentication should be tested by this authentication provider.
public IsReturningFromAuthentication ( System request ) : bool
request System The request.
return bool

SetPassword() public method

Sets the password.
public SetPassword ( UserLogin user, string password ) : void
user UserLogin The user.
password string The password.
return void