-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
WebSockets Next: allow to select authentication mechanism and OIDC tenant used for opening WebSocket handshake with annotation #46161
Conversation
michalvavrik
commented
Feb 9, 2025
- closes: Quarkus WebSockets Next does not respect @HttpAuthenticationMechanism #46013
This comment has been minimized.
This comment has been minimized.
🙈 The PR is closed and the preview is expired. |
FYI @mkouba @sberyozkin - I have idea how to allow selecting mechanism or tenant with annotation even though proactive authentication is enabled, but this PR is big enough and it is not a priority. I'll open issue to improve it if this gets in. (also I didn't try the idea with sub-endpoints so no idea if I am not wrong) |
This comment has been minimized.
This comment has been minimized.
Does it mean that this only works if |
Yep, that is how annotation-based authentication features usually works because they need to match request to the endpoint (AKA annotation) and you can't do it based on path for Jakarta REST resources and proactive authentication cannot be postponed. But I think we probably can do it for WS Next, right? Anyway, there is validation in place that fails build if you don't have |
@mkouba also I am not sure if you are aware, but any endpoint annotated with these annotations https://quarkus.io/guides/security-authentication-mechanisms#use-annotations-to-enable-path-based-authentication-for-jakarta-rest-endpoints is also authenticated. This is not a security issue, I think it will give WS Next advantage once I implement this for enabled proactive authentication. |
4eeddb6
to
e219c38
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I just resolved merge conflicts and rebased in case you want to review @sberyozkin :-) |
...sions/websockets-next/runtime/src/main/java/io/quarkus/websockets/next/HttpUpgradeCheck.java
Show resolved
Hide resolved
e219c38
to
6dc8788
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
extensions/oidc/runtime/src/main/java/io/quarkus/oidc/Tenant.java
Outdated
Show resolved
Hide resolved
6dc8788
to
1c74253
Compare
Status for workflow
|
Status for workflow
|