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

x/oauth2_server/pkce.ts

A standards compliant implementation of an OAuth 2.0 authorization server with PKCE support.
Latest
import * as oauth2Server from "https://deno.land/x/oauth2_server@0.12.0/pkce.ts";

Variables

The default allowed PKCE code challenge methods. Clients SHOULD use PKCE code challenge methods that do not expose the PKCE verifier in the authorization request. Currently, "S256" is the only such method. https://datatracker.ietf.org/doc/html/draft-ietf-oauth-security-topics#section-2.1.1

Functions

Generates a random code verifier with a minimum of 256 bits of entropy. This is done by generating a random 32-octet sequence then base64url encoding it to produce a 43 octet URL safe string. https://datatracker.ietf.org/doc/html/rfc7636#section-7.1

Interfaces

The allowed PKCE code challenge methods.

Type Aliases

A challenge method used for PKCE. Transforms a verifier into a challenge.