deno.land / x / oauth4webapi@v1.2.2 / docs / functions / processUserInfoResponse.md
â–¸ processUserInfoResponse(as
, client
, expectedSubject
, response
, options?
): Promise
<UserInfoResponse
>
Validates Response instance to be one coming from the
as.userinfo_endpoint
.
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 |
- |
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.
Version Info