Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/oauth2_server/examples/oak-localstorage/deps.ts>OakAuthorizationServer

A standards compliant implementation of an OAuth 2.0 authorization server with PKCE support.
Latest
class OakAuthorizationServer
extends OakResourceServer<Client, User, Scope>
import { OakAuthorizationServer } from "https://deno.land/x/oauth2_server@0.12.0/examples/oak-localstorage/deps.ts";

Constructors

new
OakAuthorizationServer(options: OakAuthorizationServerOptions<Client, User, Scope>)

Type Parameters

Client extends ClientInterface
User
Scope extends ScopeInterface

Methods

authorize(
setAuthorization: (request: OakOAuth2AuthorizeRequest<Client, User, Scope>) => Promise<void>,
login: (request: OakOAuth2AuthorizeRequest<Client, User, Scope>, response: OakOAuth2Response) => Promise<void>,
consent?: (request: OakOAuth2AuthorizeRequest<Client, User, Scope>, response: OakOAuth2Response) => Promise<void>,
): Middleware
token(): Middleware