Search in sources :

Example 1 with AuthorizationService

use of org.keycloak.authorization.AuthorizationService in project keycloak by keycloak.

the class RealmsResource method getAuthorizationService.

@Path("{realm}/authz")
public Object getAuthorizationService(@PathParam("realm") String name) {
    ProfileHelper.requireFeature(Profile.Feature.AUTHORIZATION);
    init(name);
    AuthorizationProvider authorization = this.session.getProvider(AuthorizationProvider.class);
    AuthorizationService service = new AuthorizationService(authorization);
    ResteasyProviderFactory.getInstance().injectProperties(service);
    return service;
}
Also used : AuthorizationService(org.keycloak.authorization.AuthorizationService) AuthorizationProvider(org.keycloak.authorization.AuthorizationProvider) Path(javax.ws.rs.Path)

Aggregations

Path (javax.ws.rs.Path)1 AuthorizationProvider (org.keycloak.authorization.AuthorizationProvider)1 AuthorizationService (org.keycloak.authorization.AuthorizationService)1