C# Class Adf.Base.Authorization.AllAuthorizationProvider

Represents an Authorization service which will not allow any user to login to the system.
Inheritance: IAuthorizationProvider
Datei anzeigen Open project: NLADP/ADF

Public Methods

Method Description
IsAllowed ( IAction action ) : bool

Checks whether the current user is allowed to performs the IAction.

IsAllowed ( string subject, IAction action ) : bool

Checks whether the current user is allowed to performs the IAction.

IsInRole ( string role ) : bool

Checks whether the current user belongs to a certain role.

Login ( string name, string password ) : LoginResult

Tries to log in using user credential.

Logout ( ) : void

Logs out the current user. Here no action is taken.

Method Details

IsAllowed() public method

Checks whether the current user is allowed to performs the IAction.
public IsAllowed ( IAction action ) : bool
action IAction Any action that implements IAction (such as ApplicationTask).
return bool

IsAllowed() public method

Checks whether the current user is allowed to performs the IAction.
public IsAllowed ( string subject, IAction action ) : bool
subject string The subject for which authentication is requested.
action IAction Any action that implements IAction (such as ApplicationTask).
return bool

IsInRole() public method

Checks whether the current user belongs to a certain role.
public IsInRole ( string role ) : bool
role string Role name to check for.
return bool

Login() public method

Tries to log in using user credential.
public Login ( string name, string password ) : LoginResult
name string Login name.
password string Password (if required).
return Adf.Core.Authorization.LoginResult

Logout() public method

Logs out the current user. Here no action is taken.
public Logout ( ) : void
return void