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

Allow qualifiers to be specified for the build-in authentication mechanisms #311

Closed
arjantijms opened this issue Feb 21, 2024 · 1 comment · Fixed by #312
Closed

Allow qualifiers to be specified for the build-in authentication mechanisms #311

arjantijms opened this issue Feb 21, 2024 · 1 comment · Fixed by #312
Assignees
Milestone

Comments

@arjantijms
Copy link
Contributor

arjantijms commented Feb 21, 2024

Jakarta Security provides a number of build-in authentication mechanisms. These are enabled via a ...Definition annotation which adds a Bean<T> to CDI's beans with among its types HttpAuthenticationMechanism. We don't know the actual type of it, as that is implementation specific.

In the case that we enable multiple authentication mechanisms, we can't see which one was created via which ...Definition annotation. I.e. we don't know if it's a basic authentication mechanism or a form one, etc.

To solve that problem, we should introduce qualifiers for the ...Definition annotation. Via such qualifier we can inject and/or introspect beans.

@arjantijms arjantijms added this to the 4.0 milestone Feb 21, 2024
@arjantijms arjantijms self-assigned this Feb 21, 2024
@OndroMih
Copy link
Contributor

I believe this, together with #309, would more or less resolve #188.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants