Search in sources :

Example 1 with PermissionTicketService

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

the class ProtectionService method ticket.

@Path("/permission/ticket")
public Object ticket() {
    KeycloakIdentity identity = createIdentity(false);
    PermissionTicketService resource = new PermissionTicketService(identity, getResourceServer(identity), this.authorization);
    ResteasyProviderFactory.getInstance().injectProperties(resource);
    return resource;
}
Also used : PermissionTicketService(org.keycloak.authorization.protection.permission.PermissionTicketService) 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 PermissionTicketService (org.keycloak.authorization.protection.permission.PermissionTicketService)1