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

x/oauth4webapi/mod.ts>validateApplicationLevelSignature

Low-Level OAuth 2 / OpenID Connect Client API for JavaScript Runtimes
Latest
function validateApplicationLevelSignature
import { validateApplicationLevelSignature } from "https://deno.land/x/oauth4webapi@v3.1.2/mod.ts";

Validates the JWS Signature of either a JWT !Response.body or TokenEndpointResponse.id_token of a processed !Response

Note: Validating signatures of JWTs received via direct communication between the Client and a TLS-secured Endpoint (which it is here) is not mandatory since the TLS server validation is used to validate the issuer instead of checking the token signature. You only need to use this method for non-repudiation purposes.

Note: Supports only digital signatures.

Parameters

Authorization Server Metadata.

Response previously processed by this module that contained an ID Token or its response body was a JWT

optional
options: ValidateSignatureOptions

Returns

Promise<void>

Resolves if the signature validates, rejects otherwise.