deno.land / x / oauth4webapi@v1.2.2 / docs / functions / processClientCredentialsResponse.md

processClientCredentialsResponse.md

Function: processClientCredentialsResponse

💗 Help the project

â–¸ processClientCredentialsResponse(as, client, response): Promise<ClientCredentialsGrantResponse | OAuth2Error>

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

see RFC 6749 - The OAuth 2.0 Authorization Framework

Parameters

Name Type Description
as AuthorizationServer Authorization Server Metadata.
client Client Client Metadata.
response Response Resolved value from clientCredentialsGrantRequest.

Returns

Promise<ClientCredentialsGrantResponse | OAuth2Error>

Resolves with an object representing the parsed successful response, or an object representing an OAuth 2.0 protocol style error. Use isOAuth2Error to determine if an OAuth 2.0 error was returned.

oauth4webapi

Version Info

Tagged at
2 years ago