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
.
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 |
- |
Resolves with an object representing the parsed successful response. WWW-Authenticate HTTP Header challenges are rejected with WWWAuthenticateChallengeError.