Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 1.99 KB

processUserInfoResponse.md

File metadata and controls

33 lines (21 loc) · 1.99 KB

Function: processUserInfoResponse()

💗 Help the project

Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by becoming a sponsor.


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

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

Parameters

Parameter 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? JWEDecryptOptions -

Returns

Promise<UserInfoResponse>

Resolves with an object representing the parsed successful response. WWW-Authenticate HTTP Header challenges are rejected with WWWAuthenticateChallengeError.

See

OpenID Connect Core 1.0