Method | Description | |
---|---|---|
CreateSession ( ) : void |
Creates a new UserAuth for the current session.
|
|
FindUser ( IPrincipal principal ) : |
||
GetUserAuth ( IHttpContext context ) : IUserAuth |
Returns an IUserAuth with the specified HttpContext.
|
|
HasRole ( ) : bool |
Will check to see if the currently-acting user has any of the provided roles. Otherwise, if no roles are specified, the check will merely be to see if the user is logged in.
|
|
IsActive ( ) : bool | ||
IsLoggedIn ( ) : bool |
Returns whether there is a logged-in user stored in session.
|
|
Login ( IPrincipal principal ) : bool | ||
Logout ( ) : void |
Logs out the current user.
|
public FindUser ( IPrincipal principal ) : |
||
principal | IPrincipal | |
return |
public static GetUserAuth ( IHttpContext context ) : IUserAuth | ||
context | IHttpContext | |
return | IUserAuth |