Search in sources :

Example 1 with UserManagedPermissionService

use of org.keycloak.authorization.protection.policy.UserManagedPermissionService in project keycloak by keycloak.

the class ProtectionService method policy.

@Path("/uma-policy")
public Object policy() {
    KeycloakIdentity identity = createIdentity(false);
    UserManagedPermissionService resource = new UserManagedPermissionService(identity, getResourceServer(identity), this.authorization, createAdminEventBuilder(identity, getResourceServer(identity)));
    ResteasyProviderFactory.getInstance().injectProperties(resource);
    return resource;
}
Also used : KeycloakIdentity(org.keycloak.authorization.common.KeycloakIdentity) UserManagedPermissionService(org.keycloak.authorization.protection.policy.UserManagedPermissionService) Path(javax.ws.rs.Path)

Aggregations

Path (javax.ws.rs.Path)1 KeycloakIdentity (org.keycloak.authorization.common.KeycloakIdentity)1 UserManagedPermissionService (org.keycloak.authorization.protection.policy.UserManagedPermissionService)1