Class ReportAsResourceServerBeforeInvocationEventListener
java.lang.Object
io.jmix.reportsrest.security.event.ReportAsResourceServerBeforeInvocationEventListener
A listener for
AsResourceServerBeforeInvocationEvent
that checks "reports.rest.enabled" specific policy
for /rest/reports/** requests, managed by resource server of the Authorization Server add-on. If the current user
doesn't have this policy then the FORBIDDEN error is thrown.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected boolean
shouldCheckRequest
(jakarta.servlet.ServletRequest request)
-
Field Details
-
accessManager
-
-
Constructor Details
-
ReportAsResourceServerBeforeInvocationEventListener
public ReportAsResourceServerBeforeInvocationEventListener()
-
-
Method Details
-
doListen
@EventListener(AsResourceServerBeforeInvocationEvent.class) public void doListen(AsResourceServerBeforeInvocationEvent event) -
shouldCheckRequest
protected boolean shouldCheckRequest(jakarta.servlet.ServletRequest request)
-