-
|
Hi I am using openid-client v6.4.2 with Node.js web application (not SPA) that uses Express.js v5.1.0 and PassportJS v0.7.0 (all the latest as of this post). Everything is working as expected except for one route in my app where I need to make a call to UserInfo endpoint. However, I have noticed that Auth0 does not issue valid Is there a way to specify P.S. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I find that hard to believe. Not sure what you mean by "valid" here.
Auth0 issues opaque access tokens when no audience is specified. And those tokens are valid for the UserInfo Endpoint given they were issued in response to an authorization request with the Bottom line, your existing access token should work just fine. Lacking any further details from you it's hard to say why it doesn't.
What do you mean by "full"? Specifying an audience means the access token will be a signed JWT for a target API (indicated by the audience authorization parameter). In addition to that, if the API configuration at Auth0 is done so that the token is signed using an asymmetric digital signature algorithm, such as RS256, that token will also have the userinfo endpoint as its audience (in addition to the API).
The strategy's authorizationRequestParams method is the place to overload and add parameters to, if you want these to be dynamic per whatever .authenticate() call you make, its argument /TOptions/ will be the params passed to .authenticate()
As indicated by the name not including "auth0", |
Beta Was this translation helpful? Give feedback.
-
I should have clarified.
I can confirm, this works - using the same opaque access_token, I was able to issue ...
Thank you for the pointer! This helps...
I didn't realize this would work with other IdP... I can try it when I get a chance/ Again, thanks for the help |
Beta Was this translation helpful? Give feedback.
-
Those types come from @types/passport.
Yes. |
Beta Was this translation helpful? Give feedback.
I find that hard to believe. Not sure what you mean by "valid" here.
Auth0 issues opaque access tokens when no audience is specified. And those tokens are valid for the UserInfo Endpoint given they were issued in response to an authorization request with the
openidvalue amongst itsscopeauthorization parameter.Bottom line, your existing access token should work just fine. Lacking any further details from you it's hard to say why it doesn't.
What do you mean by "…