Reputation: 11
I've setup oidc-provider for pkce (v7x). When I do the following:
{
access_token: "a8DM82TgXF-cjlzH8yOjuK6_OF9h_JaYJjSPrAdCRG0"
expires_in: 86400
id_token: "eyJhbGci....FQg"
scope: "openid"
token_type: "Bearer"
}
How can I get node-oidc-provider to return a JWT access_token with claims?
Upvotes: 1
Views: 1473
Reputation:
You shall use the Resource Indicators feature (oidc-provider docs) and request an access token for a particular resource server, in the resource indicators feature the configuration getResourceServerInfo
is for validating the resource indicator provided (or defaulted to) in the authorization request. The return value from this getResourceServerInfo
helper also defines the access token format (accessTokenFormat
property), when the value is jwt
the resulting Access Token is, well, a JWT following the JSON Web Token (JWT) Profile for OAuth 2.0 Access Tokens.
Upvotes: 1