Interface AuthorizationInterceptor
- All Superinterfaces:
ServiceInterceptor
Create an event bus service interceptor that will provide an authorization check
-
Method Summary
Modifier and TypeMethodDescriptionaddAuthorization(Authorization authorization) Add a single authority to the authorities set.static AuthorizationInterceptorcreate(AuthorizationProvider authorizationProvider) setAuthorizations(Set<Authorization> authorizations) Set the required authorities for the service, once a JWT is validated it will be queried for these authorities.Methods inherited from interface ServiceInterceptor
intercept
-
Method Details
-
create
-
setAuthorizations
Set the required authorities for the service, once a JWT is validated it will be queried for these authorities. If authorities are missing a error 403 is returned.- Parameters:
authorizations- set of authorities- Returns:
- self
-
addAuthorization
Add a single authority to the authorities set.- Parameters:
authorization- authority- Returns:
- self
-