mbauer83.zio_http_authorization.AuthorizationPolicy$.AuthorizeByTenantIdOrSuperRolePolicy
See theAuthorizeByTenantIdOrSuperRolePolicy companion object
class AuthorizeByTenantIdOrSuperRolePolicy[U <: User[_, _], R <: Resource[_]] extends AuthorizationPolicy[U, R]
An AuthorizationPolicy that authorizes access if and only if either of the following conditions is met:
- The user has the Role.SUPER role
- The resource's Resource.ResourceDescriptor.tenantId matches the user's tenant-id
- The resource's Resource.ResourceDescriptor.tenantId is empty
Attributes
- Companion
- object
- Graph
-
- Supertypes
Members list
In this article