KorAP / Kustvakt

:speedboat: User and policy management component for KorAP, capable of rewriting queries for policy based document restrictions.
BSD 2-Clause "Simplified" License
4 stars 3 forks source link

Fix BlockingFilter #659

Closed margaretha closed 7 months ago

margaretha commented 10 months ago

BlockingFilter implements ContainerRequestFilter where in KorAP uses SecurityContext to check if a user logged in or not.

After migrating to JakartaEE, securityContext.getUserPrincipal() becomes null. The Principal comes from org.glassfish.grizzly.http.server.Request in the test environment.

margaretha commented 10 months ago

The remaining javax.annotation.Priority had caused the problem.

margaretha commented 7 months ago

Done