Search in sources :

Example 1 with PermissionService

use of org.keycloak.authorization.protection.permission.PermissionService in project keycloak by keycloak.

the class ProtectionService method permission.

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

Aggregations

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