- getAuthCookie
string getAuthCookie(HttpClient client)
Gets the auth cookie from a client.
- hasAuthCookie
bool hasAuthCookie(HttpClient client)
Checks whether the client has the auth cookie or not.
- initializeAuth
void initializeAuth()
Static constructor for the module.
- login
void login(HttpClient client, long loginTime, Role role)
- logout
void logout(HttpClient client)
- setTokenInvalidator
void setTokenInvalidator(void function(string, HttpClient) invalidator)
void setTokenInvalidator(void delegate(string, HttpClient) invalidator)
Sets the token invalidator.
- setTokenSetter
void setTokenSetter(string function(HttpClient) setter)
void setTokenSetter(string delegate(HttpClient) setter)
- setTokenValidator
void setTokenValidator(Role function(string, HttpClient) validator)
void setTokenValidator(Role delegate(string, HttpClient) validator)
Sets the token validator.
- validateAuthentication
void validateAuthentication(HttpClient client)
Validates the authentication.
This also sets the role etc.
Copyright © DiamondMVC 2019