public class ScopeMappedClientResource extends Object
Modifier and Type | Field and Description |
---|---|
protected AdminEventBuilder |
adminEvent |
protected AdminPermissionEvaluator |
auth |
protected AdminPermissionEvaluator.RequirePermissionCheck |
managePermission |
protected RealmModel |
realm |
protected ScopeContainerModel |
scopeContainer |
protected ClientModel |
scopedClient |
protected KeycloakSession |
session |
protected AdminPermissionEvaluator.RequirePermissionCheck |
viewPermission |
Constructor and Description |
---|
ScopeMappedClientResource(RealmModel realm,
AdminPermissionEvaluator auth,
ScopeContainerModel scopeContainer,
KeycloakSession session,
ClientModel scopedClient,
AdminEventBuilder adminEvent,
AdminPermissionEvaluator.RequirePermissionCheck managePermission,
AdminPermissionEvaluator.RequirePermissionCheck viewPermission) |
Modifier and Type | Method and Description |
---|---|
void |
addClientScopeMapping(List<RoleRepresentation> roles)
Add client-level roles to the client's scope
|
void |
deleteClientScopeMapping(List<RoleRepresentation> roles)
Remove client-level roles from the client's scope.
|
Stream<RoleRepresentation> |
getAvailableClientScopeMappings()
The available client-level roles
Returns the roles for the client that can be associated with the client's scope
|
Stream<RoleRepresentation> |
getClientScopeMappings()
Get the roles associated with a client's scope
Returns roles for the client.
|
Stream<RoleRepresentation> |
getCompositeClientScopeMappings(boolean briefRepresentation)
Get effective client roles
Returns the roles for the client that are associated with the client's scope.
|
protected RealmModel realm
protected AdminPermissionEvaluator auth
protected AdminPermissionEvaluator.RequirePermissionCheck managePermission
protected AdminPermissionEvaluator.RequirePermissionCheck viewPermission
protected ScopeContainerModel scopeContainer
protected KeycloakSession session
protected ClientModel scopedClient
protected AdminEventBuilder adminEvent
public ScopeMappedClientResource(RealmModel realm, AdminPermissionEvaluator auth, ScopeContainerModel scopeContainer, KeycloakSession session, ClientModel scopedClient, AdminEventBuilder adminEvent, AdminPermissionEvaluator.RequirePermissionCheck managePermission, AdminPermissionEvaluator.RequirePermissionCheck viewPermission)
@GET @Produces(value="application/json") public Stream<RoleRepresentation> getClientScopeMappings()
@Path(value="available") @GET @Produces(value="application/json") public Stream<RoleRepresentation> getAvailableClientScopeMappings()
@Path(value="composite") @GET @Produces(value="application/json") public Stream<RoleRepresentation> getCompositeClientScopeMappings(@QueryParam(value="briefRepresentation") @DefaultValue(value="true") boolean briefRepresentation)
briefRepresentation
- if false, return roles with their attributes@POST @Consumes(value="application/json") public void addClientScopeMapping(List<RoleRepresentation> roles)
roles
- @DELETE @Consumes(value="application/json") public void deleteClientScopeMapping(List<RoleRepresentation> roles)
roles
- Copyright © 2021 JBoss by Red Hat. All rights reserved.