Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

MandarineSecurity.Auth

import { MandarineSecurity } from "https://raw.githubusercontent.com/mandarineorg/mandarinets/master/mod.ts"; 

const { Auth } = MandarineSecurity;

§Enums

MandarineSecurity.Auth.AuthExceptions

List of known authentication exceptions

§Interfaces

MandarineSecurity.Auth.AuthenticationManagerBuilder

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

MandarineSecurity.Auth.AuthenticationResult

Contains the state of a built-in authentication process

MandarineSecurity.Auth.Authenticator

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

MandarineSecurity.Auth.Handler

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

MandarineSecurity.Auth.PerformAuthenticationOptions
MandarineSecurity.Auth.PerformHTTPAuthenticationOptions
MandarineSecurity.Auth.RequestAuthObj

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)

MandarineSecurity.Auth.UserDetails

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

MandarineSecurity.Auth.UserDetailsService

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

§Type Aliases

MandarineSecurity.Auth.AuthenticatorExecutor
MandarineSecurity.Auth.GrantedAuthority
MandarineSecurity.Auth.Permissions
MandarineSecurity.Auth.PermissionValidator

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

MandarineSecurity.Auth.PredefinedExpressions