Skip to main content
Module

x/mandarinets/mod.ts>MandarineSecurity.Auth

Mandarine.TS is a typescript, decorator-driven framework that allows you to create server-side applications. Mandarine.TS provides a range of built-in solutions such as Dependency Injection, Components, ORM and more. Under its umbrella, Mandarine.TS has 4 modules: Core, Data, Security and MVC, these modules will offer you the requirements to build a Mandarine-powered application.
Latest
namespace MandarineSecurity.Auth
import { MandarineSecurity } from "https://deno.land/x/mandarinets@v2.3.2/mod.ts";
const { Auth } = MandarineSecurity;

Enums

List of known authentication exceptions

Interfaces

Principal interface for the authentication manager builder, which indicates what what service (implementing Mandarine.Security.Auth.UserDetailsService) we will call for built-in authentication

Contains the state of a built-in authentication process

Private API to perform authentication (Mandarine's built-in Authentication)

Handler for login/logout whether successful or not. This is executed after login/logout was called (from built-in authentication)

Data present in request.authentication AUTH_SES_ID refers to the session id with the data of the user that was logged in through Mandarine's built-in authentication AUTH_EXPIRES refers to the time when the session will expire AUTH_PRINCIPAL refers to all the data that was loaded (following the UserDetails implementation)

Interface for the minimum of information a user model must have when using Mandarine's built-in authentication.

Interface for a mandarine-powered component (type service) which will be used for built-in authentication

Type Aliases

Permission validators are functions executed during the evaluation of a security expression. PermissionValidator is how Mandarine interprets a security expression