public class ClientScopesResource extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.jboss.logging.Logger |
logger |
protected RealmModel |
realm |
protected KeycloakSession |
session |
Constructor and Description |
---|
ClientScopesResource(RealmModel realm,
AdminPermissionEvaluator auth,
AdminEventBuilder adminEvent) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createClientScope(ClientScopeRepresentation rep)
Create a new client scope
Client Scope's name must be unique!
|
ClientScopeResource |
getClientScope(String id)
Base path for managing a specific client scope.
|
Stream<ClientScopeRepresentation> |
getClientScopes()
Get client scopes belonging to the realm
Returns a list of client scopes belonging to the realm
|
protected static final org.jboss.logging.Logger logger
protected RealmModel realm
@Context protected KeycloakSession session
public ClientScopesResource(RealmModel realm, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent)
@GET @Produces(value="application/json") public Stream<ClientScopeRepresentation> getClientScopes()
@POST @Consumes(value="application/json") public javax.ws.rs.core.Response createClientScope(ClientScopeRepresentation rep)
rep
- @Path(value="{id}") public ClientScopeResource getClientScope(@PathParam(value="id") String id)
id
- id of client scope (not name)Copyright © 2021 JBoss by Red Hat. All rights reserved.