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

x/oauth4webapi/mod.ts>processClientCredentialsResponse

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

Validates Client Credentials Grant !Response instance to be one coming from the AuthorizationServer.token_endpoint | as.token_endpoint.

Parameters

Authorization Server Metadata.

client: Client

Client Metadata.

response: Response

Resolved value from clientCredentialsGrantRequest.

optional
options: JWEDecryptOptions

Returns

Resolves with an object representing the parsed successful response. OAuth 2.0 protocol style errors are rejected using ResponseBodyError. WWW-Authenticate HTTP Header challenges are rejected with WWWAuthenticateChallengeError.