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

processUserInfoResponse.md

Function: processUserInfoResponse

💗 Help the project

â–¸ processUserInfoResponse(as, client, expectedSubject, response, options?): Promise<UserInfoResponse>

Validates Response instance to be one coming from the as.userinfo_endpoint.

see OpenID Connect Core 1.0

Parameters

Name Type Description
as AuthorizationServer Authorization Server Metadata.
client Client Client Metadata.
expectedSubject string | typeof skipSubjectCheck Expected sub claim value. In response to OpenID Connect authentication requests, the expected subject is the one from the ID Token claims retrieved from getValidatedIdTokenClaims.
response Response Resolved value from userInfoRequest.
options? HttpRequestOptions -

Returns

Promise<UserInfoResponse>

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