Endpoints with different authentication schemes #45619
-
Is there any way to expose endpoints with different authentication schemes with Quarkus? For instance,
I would really appreciate any pointers on how this could be possible. Thanks a lot 😃 |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 22 replies
-
@sNiXx As far as endpoint 2 is concerned, there is no client authentication, so I'd touch on endpoint 1 and 3, see https://quarkus.io/guides/security-authentication-mechanisms#use-http-security-policy-to-enable-path-based-authentication. For the mtls, the the mechanism name is If endpoints 2 is public then just make the policy permitted, that should do |
Beta Was this translation helpful? Give feedback.
-
I'd like to characterize it slightly differently: proactive authentication is about determining the moment when the authentication is performed. If it is on (default), the credentials are verified before it is known if the endpoint is public or secured. If it is disabled, it is performed only if a given request path requires an authentication
Yes, all of them are required to produce a verified security identity
This requires a more specific discussion, what use case do you have in mind ? When you put a mechanism annotation on some JAX-RS method or class, you enable a path based authentication... I believe you can also use policies alongside annotations.
No, the inclusive authentication is just a composite authentication, so it does not disables or enables the authentication, it determines how the authentication must be done. Indeed, if the proactive authentication is disabled, the authentication is performed (and it can be an inclusive one) only if the annotation or policy requires it.
As far as Can I ask you, are you just trying to understand how combining mechanisms works in different variations or is there some specific requirement behind such combinations ? The reason I ask, we can consider supporting |
Beta Was this translation helpful? Give feedback.
-
Though, |
Beta Was this translation helpful? Give feedback.
-
It is |
Beta Was this translation helpful? Give feedback.
-
No. If by annotations you mean standard security annotations like |
Beta Was this translation helpful? Give feedback.
-
proactive and inclusive authentications are not about authorization, so authentication is required when you require it with annotations or HTTP permissions. |
Beta Was this translation helpful? Give feedback.
-
that's better, I can sign under that one. |
Beta Was this translation helpful? Give feedback.
@sNiXx As far as endpoint 2 is concerned, there is no client authentication, so I'd touch on endpoint 1 and 3, see https://quarkus.io/guides/security-authentication-mechanisms#use-http-security-policy-to-enable-path-based-authentication.
For the mtls, the the mechanism name is
mtls
I believe.If endpoints 2 is public then just make the policy permitted, that should do