Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
class NoInteractionHandler
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.

Constructors

new
NoInteractionHandler(api: AuthleteApi, spi: NoInteractionHandlerSpi)

The constructor.

Properties

The SPI class for this handler.

Methods

private
checkAcr(response: AuthorizationResponse, acr: string | null)
private
checkMaxAge(response: AuthorizationResponse, authTime: number)
private
checkSubject(response: AuthorizationResponse, subject: string | null)
private
issue(
subject: string,
authTime: number,
acr: string | null,
)

Handle an authorization request without user interaction. This method calls Authlete /api/auth/authorization/issue API or /api/auth/authorization/fail API.