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

x/oauth2_server/adapters/oak/authorization_server.ts>OakResourceServerOptions

A standards compliant implementation of an OAuth 2.0 authorization server with PKCE support.
Latest
interface OakResourceServerOptions
Re-export
import { type OakResourceServerOptions } from "https://deno.land/x/oauth2_server@0.12.0/adapters/oak/authorization_server.ts";

Type Parameters

Client extends ClientInterface
User
Scope extends ScopeInterface

Properties

server: ResourceServer<Client, User, Scope>

The OAuth2 server.

optional
stateKey: string

The key for storing OAuth2 state on the context's state. Defaults to "oauth2".

optional
getAccessToken: (request: OakOAuth2Request<Client, User, Scope>) => Promise<string | null>

Gets access token from request in a non standard way. If function is not set or it resolves to null, authenticate will check for access token in the authorization header or request body.