]
Gary Brown closed RTGOV-614.
----------------------------
Fix Version/s: (was: 2.1.0.Final)
Resolution: Rejected
Not an issue - SecurityContext can be injected in the service impl rather than on the
method signature.
Reinstate security context for RTGov UI backend services
--------------------------------------------------------
Key: RTGOV-614
URL:
https://issues.jboss.org/browse/RTGOV-614
Project: RTGov (Run Time Governance)
Issue Type: Task
Reporter: Gary Brown
Assignee: Gary Brown
As part of moving from Errai RPC services to JAX-RS services (RTGOV-610), security
context (identifying the user principal) has been disabled, as this was provided via the
Errai bus at the backend.
Adding SecurityContext to the REST services causes issues with the RTGov UI, as the same
interface is used by the GWT/Errai client.
One workaround would be to have two versions of the service interface, one pure and the
other with the @Context SecurityContext parameter in the relevant methods. However this is
not ideal. Need to see whether there is any other standard way to get the SecurityContext,
and if not, consider whether using a filter may provide a better solution.