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;
}
Aggregations