Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/authlete_deno/mod.ts

Authlete Library for Deno
Go to Latest
import * as authleteDeno from "https://deno.land/x/authlete_deno@v1.2.3/mod.ts";

Classes

Access token validator.

Address claim that represents a physical mailing address. For more details, see OpenID Connect Core 1.0, 5.1.1. Address Claim.

The base class of an API response from an Authlete API.

Values for application_type.

Authlete API Exception.

The factory to create an AuthleteApi instance.

An implementation of AuthleteApi interface.

Implementation of AuthleteConfiguration based on a properties file. This is a utility class to load a configuration file that includes properties related to Authlete.

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

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

Empty implementation of AuthorizationDecisionHandlerSpi interface.

Request to Authlete /auth/authorization/fail API.

Response from Authlete /auth/authorization/fail API.

Request to Authlete /auth/authorization/issue API.

Response from Authlete /auth/authorization/issue API.

The data object to be used when rendering the authorization page.

Request to Authlete /auth/authorization API.

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

Handler for error cases of authorization requests.

Empty implementation of AuthorizationRequestHandlerSpi interface.

Response from Authlete /auth/authorization API.

A class that represents authorization_details which is defined in "OAuth 2.0 Rich Authorization Requests".

A class that represents an element in authorization_details which is defined in "OAuth 2.0 Rich Authorization Requests".

The base class for a handler class that calls Authlete APIs.

c
BaseHandler
abstract

The base class for a handler class.

Credentials in Basic authentication.

'Cache-Control' header values.

Collector of claim values.

Claim types.

Information about a client application.

Client authentication methods.

Client extension.

Response from Authlete /client/get/list API.

Client types of OAuth 2.0 client applications.

Handler for requests to an OpenID Provider configuration endpoint.

'Content-Type' header values.

Backchannel token delivery mode defined in the specification of CIBA (Client Initiated Backchannel Authentication).

Values for display.

Values for grant_type.

Header properties.

Request to Authlete /auth/introspection API.

Handler for token introspection requests (RFC 7662).

Response from Authlete /auth/introspection API.

"alg" (Algorithm) Header Parameter Values for JWE.

"enc" (Encryption Algorithm) Header Parameter Values for JWE.

Handler for requests to an endpoint that exposes JSON Web Key Set (RFC 7517) document.

"alg" (Algorithm) Header Parameter Values for JWS.

Named URI.

Handler for the case where an authorization request should be processed without user interaction.

Empty implementation of AuthorizationRequestHandlerSpi interface.

A pair of a string key and a string value.

'Pragma' header values.

Values for prompt.

Property that consists of a string key and a string value.

Request to Authlete /auth/revocation API.

Handler for token revocation requests (RFC 7009).

Response from Authlete /auth/introspection API.

Information about a scope of a service.

Information about a service.

Response from Authlete /service/get/list API.

Service profile.

SNS credentials (API key and API secret).

Request to Authlete /auth/introspection/standard API.

Request to Authlete /auth/introspection/standard API.

HTTP status code.

Values for subject_type.

A string value with a language tag.

Request to Authlete /auth/token/fail API.

Response from Authlete /auth/token/fail API.

Request to Authlete /auth/token/issue API.

Response from Authlete /auth/token/issue API.

Request to Authlete /auth/token API.

Handler for token requests to a token endpoint of OAuth 2.0 (RFC 6749).

Empty implementation of TokenRequestHandlerSpi interface.

Response from Authlete /auth/token API.

Interface to get a claim value by specifying a user's subject, a claim name and optionally a language tag.

Character set for end-user verification codes (user_code) in Device Flow.

Request to Authlete /auth/userinfo/issue API

Response from Authlete /auth/userinfo/issue API

Request to Authlete /auth/userinfo API

Handler for userinfo requests to a "UserInfo Endpoint" defined in OpenID Connect Core 1.0.

Empty implementation of UserInfoRequestHandlerSpi interface.

Enums

Failure reasons of authorization requests.

The next action that the service implementation should take.

The next action that the service implementation should take.

Hash algorithm.

The next action that the service implementation should take.

The next action that the service implementation should take.

Standard claims.

The next action that the service implementation should take.

Failure reasons of token requests.

The next action that the service implementation should take.

The next action that the service implementation should take.

The next action that the service implementation should take.

The next action that the service implementation should take.

Variables

Separator between a claim name and a language tag.

The information about the standard implementation of AuthleteApi interface.

Functions

Create a response of '400 Bad Request' formatted in 'application/json; charset=utf-8'.

Build a Response object.

Create a response of '201 Created' with the given content formatted in 'application/json; charset=utf-8'.

Create a response of '403 Forbidden' formatted in 'application/json; charset=utf-8'.

Convert the given object to a string formatted in 'application/x-www-form-urlencoded'

Create a response of '500 Internal Server Error' formatted in the given type. The type parameter defaults to ContentType.APPLICATION_JSON_UTF8 (= application/javascript; charset=utf-8).

Create a Response instance that indicates the value of action parameter contained in a response from an Authlete API is invalid.

Check if the given value is empty.

Check if the given value is not empty.

Check if the given value is undefined.

Check if the given value is an object.

Check if the given value is an object.

Check if the given value is undefined.

Check if the given value is undefined or null.

Create a response of '302 Found' with the given location.

Create a response of '204 No Content'.

Normalize the given parameter as parameters parameter for some Authlete APIs such as /api/auth/authorization API and /api/auth/token API.

Create a response of '404 Not Found' formatted in 'application/json; charset=utf-8'.

Create a response of '200 OK' with the given content formatted in the given type. The type parameter defaults to ContentType.APPLICATION_JSON_UTF8 (= application/javascript; charset=utf-8).

Create a response of '200 OK' with the given content formatted in 'text/html; charset=utf-8'.

Create a response of '200 OK' with the given content formatted in 'application/javascript; charset=utf-8'.

Create a response of '200 OK' with the given content formatted in 'application/json; charset=utf-8'.

Create a response of '200 OK' with the given content formatted in 'application/jwt'.

Convert a JavaScript value to a JSON string. null is returned if failed to stringfy the value.

Create a response of '401 Unauthorized' formatted in 'application/json; charset=utf-8'.

Create a Response instance that indicates the value of action parameter contained in a response from an Authlete API is unknown.

Create a response with the given status and WWW-Authenticate header having the given challenge as its value.

Interfaces

Authlete API Interface.

The interface for configuration.

Service Provider Interface to work with AuthorizationDecisionHandler.

Service Provider Interface to work with AuthorizationRequestHandler.

Service Provider Interface to work with AuthorizationRequestHandler.

Input parameters for the handle() method of RevocationRequestHandler class.

Input parameters for the handle() method of TokenRequestHandler class.

Service Provider Interface to work with TokenRequestHandler.

An interface that represents a resource owner (in the context of OAuth 2.0) or an end user (in the context of OpenID Connect).

Interface to get a claim value by specifying a user's subject, a claim name and optionally a language tag.

Input parameters for the handle() method of UserInfoRequestHandler class.

Service Provider Interface to work with UserInfoRequestHandler.

Type Aliases

The alias for the type of an object holding information about an implementation class of AuthleteApi interface.

The type of 'parameters' parameter passed to the handle() method in IntrospectionRequestHandler class.