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

OIDC - Harden conditions for token verification with user info #29927

Conversation

michalvavrik
Copy link
Member

@michalvavrik michalvavrik commented Dec 16, 2022

#29715 follow-up

I think previous condition was typo and it worked as by default allow-jwt-introspection is set to true (which is going to change in the future). We should only allow empty introspection result if that's a way how user info verification says "verification has been successful".

NOTE: AFAICT from code - only time when introspection is null at that line is when we allowed verification with user info, but we should fix the condition anyway in case something goes wrong..

follow up to quarkusio#29715

I think previous condition was typo and it worked as by default `allow-opaque-token-introspection` is set to true (which is going to change in the future). We should only allow empty introspection result if that's a way how user info verification says "verification has been successful".
Copy link
Member

@sberyozkin sberyozkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, JWT tokens can also be introspected but indeed, if the introspection request did not fail then it can only be null under current conditions if it is an opaque token verified indirectly via UserInfo

@sberyozkin sberyozkin merged commit 7ea457a into quarkusio:main Dec 16, 2022
@quarkus-bot quarkus-bot bot added this to the 2.16 - main milestone Dec 16, 2022
@michalvavrik michalvavrik deleted the feature/fix-oidc-userinfo-confing-condition branch December 16, 2022 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants