Priorities of security CDI interceptors #40798
sberyozkin
started this conversation in
Design Discussions
Replies: 1 comment
-
My POV is that
So fixing the priority makes sense to me. Nevertheless as you mentioned, it's not very useful anyway. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Michal explained in the quarkus-langchain4j PR discussion that currently, these security and activate request context CDI interceptors have the following priorities:
StandardSecurityCheckInterceptor
has a priorityPLATFORM_BEFORE
@Authenticated
and other annotations have aLIBRARY_BEFORE
priority.ActivateRequestContextInterceptor
has a priorityPLATFORM_BEFORE + 100
Does it make sense to get
ActivateRequestContextInterceptor
running for example atLIBRARY_BEFORE - 1
, so that users can add for example@ActivateRequestContext
, alongside@Authenticated
, on random beans, not only on JAX-RS resources ?Michal also explained that it won't really help if the
RequestContext
was already terminated since@ActivateRequestContext
will miss out on the authenticatedSecurityIdentity
from the terminated context, so perhaps it does not make sense to pursue it.Beta Was this translation helpful? Give feedback.
All reactions