C# Class Serenity.WebSecurityHelper

Static class contains helper functions associated with user rights, login, encrypting
显示文件 Open project: volkanceylan/Serenity

Public Methods

Method Description
Authenticate ( string &username, string password, bool persist ) : bool

Validate user identity by checking username and password and sets authentication ticket that is based on cookie

EnsurePermission ( string permission ) : void
LogOut ( ) : void

Logs out to logged user.

SetAuthenticationTicket ( string username, bool persist ) : void

Sets authentication cookie.

Method Details

Authenticate() public static method

Validate user identity by checking username and password and sets authentication ticket that is based on cookie
public static Authenticate ( string &username, string password, bool persist ) : bool
username string /// Username to be validated (required).
password string /// User Password to be validated(required).
persist bool /// true to make ticket persistent? (beni hatırla seçeneği, güvenlik açısından pek kullanmıyoruz.)
return bool

EnsurePermission() public static method

public static EnsurePermission ( string permission ) : void
permission string
return void

LogOut() public static method

Logs out to logged user.
public static LogOut ( ) : void
return void

SetAuthenticationTicket() public static method

Sets authentication cookie.
public static SetAuthenticationTicket ( string username, bool persist ) : void
username string /// Validated Username (required).
persist bool /// is persistent authentication tikcet? (remember me, we don't use this for reasons considering with security)
return void