Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
class AuthorizationRequestBaseHandler
Re-export
Abstract
import { AuthorizationRequestBaseHandler } from "https://deno.land/x/authlete_deno@v1.2.3/mod.ts";

The base class for request handlers that are used in the implementation of an authorization endpoint.

Methods

private
createAuthorizationFailRequest(ticket: string, reason: Reason)
private
createAuthorizationIssueRequest(
ticket: string,
subject: string,
authTime: number,
sub: string | null,
acr: string | null,
claims: { [key: string]: any; } | null,
properties: Property[] | null,
scopes: string[] | null,
)
protected
authorizationFail(ticket: string, reason: Reason)

Call Authlete /api/auth/authorization/fail API and generate an instance of Deno's standard Response class (defined in https://deno.land/std/http/server.ts) according to the value of the action parameter in the response from the API.

protected
authorizationIssue(
ticket: string,
subject: string,
authTime: number,
acr: string | null,
sub: string | null,
claims: { [key: string]: any; } | null,
properties: Property[] | null,
scopes: string[] | null,
)

Call Authlete /api/auth/authorization/issue API and generate an instance of Deno's standard Response class (defined in https://deno.land/std/http/server.ts) according to the value of the action parameter in the response from the API.