Skip to main content
Module

x/alosaur/security.ts>AuthenticationScheme

Alosaur - Deno web framework with many decorators
Very Popular
Go to Latest
interface AuthenticationScheme
Re-export
import { type AuthenticationScheme } from "https://deno.land/x/alosaur@v0.37.0/security.ts";

Methods

authenticate(context: SecurityContext): Promise<void>

This function assign to context identity info, uses in Authorization middleware

signInAsync<I, R = any>(context: SecurityContext, identity: Identity<I>): Promise<R>

Create sign identity and assign to context identity info

signOutAsync<T, R>(context: SecurityContext): Promise<R>

Clear sign in info and destroy identity context

onFailureResult(context: SecurityContext): void

Uses in Authorize decorators for handle if AuthPayload result failure

onSuccessResult(context: SecurityContext): void

Uses in Authorize decorators for handle if AuthPayload result success