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

Classes

Input parameters for the 'handle' method of AuthorizationRequestHandler class.

class AuthorizationDecisionHandler
import { AuthorizationDecisionHandler } from "https://deno.land/x/authlete_deno@v1.2.3/mod.ts";

Handler for end-user's decision on the authorization request.

An authorization endpoint returns an authorization page (HTML) to an end-user, and the end-user will select either 'authorize' or 'deny' the authorization request. This class handles the decision and calls Authlete /api/auth/authorization/issue API or /api/auth/authorization/fail API accordingly.

Constructors

new
AuthorizationDecisionHandler(api: AuthleteApi, spi: AuthorizationDecisionHandlerSpi)

The constructor.

Properties

The SPI class for this handler.

Methods

private
authorize(params: AuthorizationDecisionHandler.Params, subject: string)

Handle an end-user's decision on an authorization request.