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

Add TestPrincipalProducer #26792

Merged
merged 1 commit into from Jul 18, 2022

Conversation

sberyozkin
Copy link
Member

@sberyozkin sberyozkin commented Jul 18, 2022

Related to #26765.

While @kucharzyk has managed to get it working with the correct dependencies, integration-tests/elytron-resteasy shows the problem - injected SecurityIdentity will return a correctly initialized Principal while a directly injected Principal is anonymous.
I think it is to do with SecurityIdentityAssociation's not returning an identity principal directly - but I'm not going to try to change that code as it works for the prod case. But adding a test principal producer fixes it, and I've also updated smallrye-jwt and oidc tests to verify it is not interfering.

@sberyozkin sberyozkin merged commit c328e8e into quarkusio:main Jul 18, 2022
@quarkus-bot quarkus-bot bot added this to the 2.12 - main milestone Jul 18, 2022
@sberyozkin sberyozkin deleted the test_security_principal branch July 18, 2022 16:34
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.

None yet

2 participants