import { NoInteractionHandler } from "https://deno.land/x/authlete_deno@v1.2.3/mod.ts";
Handler for the case where an authorization request should be processed without user interaction.
A response from Authlete /api/auth/authorization
API contains an
action
response parameter. When the value of the response parameter
is NO_INTERACTION
, the authorization request needs to be processed
without user interaction. This class is a handler for the case.
Methods
private
checkAcr(response: AuthorizationResponse, acr: string | null)private
checkAuthentication()private
checkMaxAge(response: AuthorizationResponse, authTime: number)private
checkSubject(response: AuthorizationResponse, subject: string | null)private
issue()handle(response: AuthorizationResponse)
Handle an authorization request without user interaction. This
method calls Authlete /api/auth/authorization/issue
API or
/api/auth/authorization/fail
API.