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 typed 'getPrincipal' method to the SecurityIdentity for user convenience #53

Conversation

michalvavrik
Copy link
Member

Personally, I'd prefer <T extends Principal> T getPrincipal() but it would be breaking change.

@sberyozkin
Copy link
Member

sberyozkin commented Sep 20, 2024

It is a simple update to let users avoid doing (JsonWebToken)securityIdentity.getPrincipal(), etc, thanks @michalvavrik

@cescoffier cescoffier merged commit 5be9ed6 into quarkusio:main Sep 22, 2024
3 checks passed
@michalvavrik michalvavrik deleted the feature/add-typed-get-principal-to-sec-identity branch September 22, 2024 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support typed SecurityIdentity.getPrincipal methods
3 participants