-
We are in the process of setting up an endpoint that allows access using either a session Cookie or AccessToken using the AuthType auth-openidc according to https://github.com/OpenIDC/mod_auth_openidc/wiki/Single-Page-Applications#allowing-both-oauth-20-and-openid-connect. When accessing the endpoint with a cookie, we get all the OIDC claims we would expect to get from a UserInfo lookup. However, when accessing the endpoint with an AccessToken, we only get the OAuth2 claims, we would expect from token introspection, not the UserInfo. Is there a way to also fetch UserInfo for requests authenticated with an AccessToken, similar to requests authenticated with a session cookie? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
no, that is not possible and I would be hesitant to add something like that because it would further blur the line between OAuth 2.0 and OpenID Connect (though granted SPAs with the current implementation are already a mix, hence the separate mod_oauth2 development). I guess the way forward would be to pickup the access token in the application and make your own requests with it, or better, to add the claims you need to the access token introspection result. |
Beta Was this translation helpful? Give feedback.
-
OpenID Connect (and hence the cookie consumed with |
Beta Was this translation helpful? Give feedback.
no, that is not possible and I would be hesitant to add something like that because it would further blur the line between OAuth 2.0 and OpenID Connect (though granted SPAs with the current implementation are already a mix, hence the separate mod_oauth2 development). I guess the way forward would be to pickup the access token in the application and make your own requests with it, or better, to add the claims you need to the access token introspection result.