Skip to content

Is it possilbe to access UriInfo from a HttpSecurityPolicy? #45618

Discussion options

You must be logged in to vote

hey @brice-laurencin and @sberyozkin ,

first of all, to expect that ActiveRequestContext will be populated with a UriInfo is wrong, you need a CDI request context prepared by Quarkus, so just forget about it. I tried to document it in past, but we somehow ended up dropping the text I prepared @sberyozkin :-)

@brice-laurencin Or may be you can implement a custom JAX-RS container request filter instead of HttpSecurityPolicy if you prefer to work with JAX-RS helpers like UriInfo and throw ForbiddenException in case of authorization failures ?

-1; our authorization policy should be more efficient and safer unless you are expert on this stuff in Quarkus (so Sergey can follow his own advice :…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@brice-laurencin
Comment options

@sberyozkin
Comment options

@sberyozkin
Comment options

@michalvavrik
Comment options

Answer selected by brice-laurencin
@michalvavrik
Comment options

@brice-laurencin
Comment options

@sberyozkin
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants