Authenticator
import { Authenticator } from "https://raw.githubusercontent.com/mandarineorg/mandarinets/master/mod.ts";
The authenticator class contains the logic behind executing built-in authentication by Mandarine. This class is requested by Mandarine's built-in authentication
§Methods
Refers to the context of the current request.
This functions performs authentication using Mandarine built-in auth system. Returns the status of the authentication (Mandarine.Security.Auth.AuthenticationResult) & the object with the user's data if successful.
Contains the information to execute the authentication such as user & password. It takes an optional value for executer
which is a function to be executed when authentication is done (if successful)
Contains the information to execute the authentication such as user & password.
Optionally, you can pass executers to the executer object. Where authExecuter
is a function to be called at the end of the authentication if successful & httpExecuter
a function to be called at the end of the HTTP authentication process.
Stops the authentication active on the HTTP request (logs out)
Request context the user has been sent which should theorically contain the data of the authentication.