Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optionally keep userinfo validator for api calls only, use all providers #335

Merged
merged 3 commits into from
Oct 11, 2021

Conversation

julien-nc
Copy link
Member

In some case (which I faced IRL 😁) the uid attribute is not in the token but is returned by the userinfo endpoint.

In fact, when receiving an api call, we don't know how the OIDC token was generated and the associated claims.

@julien-nc julien-nc added the bug Something isn't working label Oct 5, 2021
… might be missing from externally created tokens

Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
@julien-nc julien-nc force-pushed the fix/userinfo-for-api-validation branch from 8f8fbcf to dc73fec Compare October 8, 2021 12:09
…irst

Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
@julien-nc julien-nc changed the title Keep userinfo validator for api calls only Optionally keep userinfo validator for api calls only, use all providers Oct 8, 2021
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
@julien-nc
Copy link
Member Author

Some news:

  • userinfo validation can be enabled via user_oidc -> userinfo_bearer_validation in config.php
  • a small explanation has been added to the README
  • Bearer tokens validation is now done using all providers instead of just the first (which was...strange)

@juliusknorr juliusknorr merged commit dc429f6 into master Oct 11, 2021
@juliusknorr juliusknorr deleted the fix/userinfo-for-api-validation branch October 11, 2021 14:03
@juliusknorr juliusknorr mentioned this pull request Apr 11, 2022
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants