open class ServiceJWTInterceptor : Function<Message<JsonObject>, Future<Message<JsonObject>>>
Create an event bus service interceptor using a JWT auth that will verify all requests before the service is invoked Once a JWT is validated it will be queried for authorities. If authorities are missing a error 403 is returned.
ServiceJWTInterceptor()
Create an event bus service interceptor using a JWT auth that will verify all requests before the service is invoked Once a JWT is validated it will be queried for authorities. If authorities are missing a error 403 is returned. |
open fun addAuthority(authority: String): ServiceJWTInterceptor
Add a single authority to the authorities set. |
|
open fun apply(msg: Message<JsonObject>): Future<Message<JsonObject>> |
|
open fun clearAuthorities(): ServiceJWTInterceptor
Clear the current set of authorities. |
|
open fun setAuthorities(authorities: MutableSet<String>): ServiceJWTInterceptor
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. |
|
open fun setJwtAuth(jwtAuth: JWTAuth): ServiceJWTInterceptor
Set a JWT auth that will verify all requests before the service is invoked. |