CoSecServiceRouteAuthorizer

class CoSecServiceRouteAuthorizer(checker: AuthorizationChecker, defaultTenant: String = Caller.DEFAULT_TENANT) : ServiceRouteAuthorizer

Authorizes a call of a service route with CoSec's documents, as CoSecCommandAuthorizer authorizes a command: the call is the action <context>:<route> on the resource route/<route> (CoSecActions), the name CoSec's route map gives the route over HTTP. A request-less caller gets no objection.

Constructors

Link copied to clipboard
constructor(checker: AuthorizationChecker, defaultTenant: String = Caller.DEFAULT_TENANT)

Functions

Link copied to clipboard
open suspend override fun authorize(caller: Caller, action: RouteAction): Authorization