Task Summary
In access-control-service/src/main/scala/org/apache/texera/service/resource/AccessControlResource.scala, when SecurityContext.getUserPrincipal is already a SessionUser populated by JwtAuthFilter, reuse it instead of calling JwtParser.parseToken on the Authorization header value again. Fall back to the existing query/body token extraction only when SecurityContext is unauthenticated.
Task Type
Task Summary
In
access-control-service/src/main/scala/org/apache/texera/service/resource/AccessControlResource.scala, whenSecurityContext.getUserPrincipalis already aSessionUserpopulated byJwtAuthFilter, reuse it instead of callingJwtParser.parseTokenon theAuthorizationheader value again. Fall back to the existing query/body token extraction only whenSecurityContextis unauthenticated.Task Type