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

x/oauth4webapi/mod.ts>experimental_validateDetachedSignatureResponse

OAuth 2 / OpenID Connect for JavaScript Runtimes
Go to Latest
function experimental_validateDetachedSignatureResponse
import { experimental_validateDetachedSignatureResponse } from "https://deno.land/x/oauth4webapi@v2.7.0/mod.ts";

This is an experimental feature, it is not subject to semantic versioning rules. Non-backward compatible changes or removal may occur in any future release.

Same as validateAuthResponse but for FAPI 1.0 Advanced Detached Signature authorization responses.

Parameters

Authorization Server Metadata.

client: Client

Client Metadata.

parameters: URLSearchParams | URL

Authorization Response parameters as URLSearchParams or an instance of URL with parameters in a fragment/hash.

expectedNonce: string

Expected ID Token nonce claim value.

optional
expectedState: string | expectNoState

Expected state parameter value. Default is expectNoState.

optional
maxAge: number | skipAuthTimeCheck

ID Token IDToken.auth_time | auth_time claim value will be checked to be present and conform to the maxAge value. Use of this option is required if you sent a max_age parameter in an authorization request. Default is Client.default_max_age | client.default_max_age and falls back to skipAuthTimeCheck.

optional
options: HttpRequestOptions

Returns

Validated Authorization Response parameters or Authorization Error Response.