Package io.jmix.bpmrest.security.event
Class BpmAsResourceServerBeforeInvocationEventListener
java.lang.Object
io.jmix.bpmrest.security.event.BpmAsResourceServerBeforeInvocationEventListener
Performs checking for all requests which match with: /rest/bpm/process/**, rest/bpm/dmn/** because they should be
available only for authenticated users with a special
BpmRestAccessContext.POLICY_NAME
policy. If no such
policy will be found event should prevent further request execution and set proper errorCode.
Should be used only with jmix-security-oauth2 module, so conditional annotation applied.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected boolean
shouldCheckRequest
(jakarta.servlet.ServletRequest request)
-
Constructor Details
-
BpmAsResourceServerBeforeInvocationEventListener
public BpmAsResourceServerBeforeInvocationEventListener()
-
-
Method Details
-
doListen
@EventListener(AsResourceServerBeforeInvocationEvent.class) public void doListen(AsResourceServerBeforeInvocationEvent event) -
shouldCheckRequest
protected boolean shouldCheckRequest(jakarta.servlet.ServletRequest request)
-