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 ) : |
Tries to log in using user credential.
|
|
Logout ( ) : void |
Logs out the current user. Here no action is taken.
|
public IsAllowed ( IAction action ) : bool | ||
action | IAction | Any action that implements IAction (such as ApplicationTask). |
return | bool |
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 |
public IsInRole ( string role ) : bool | ||
role | string | Role name to check for. |
return | bool |
public Login ( string name, string password ) : |
||
name | string | Login name. |
password | string | Password (if required). |
return |