public class ScopeMappedApplicationResource extends Object
Modifier and Type | Field and Description |
---|---|
protected ApplicationModel |
app |
protected ClientModel |
client |
protected RealmModel |
realm |
protected KeycloakSession |
session |
Constructor and Description |
---|
ScopeMappedApplicationResource(RealmModel realm,
RealmAuth auth,
ClientModel client,
KeycloakSession session,
ApplicationModel app) |
Modifier and Type | Method and Description |
---|---|
void |
addApplicationScopeMapping(List<RoleRepresentation> roles)
Add application-level roles to the client's scope
|
void |
deleteApplicationScopeMapping(List<RoleRepresentation> roles)
Remove application-level roles from the client's scope.
|
List<RoleRepresentation> |
getApplicationScopeMappings()
Get the roles associated with a client's scope for a specific application.
|
List<RoleRepresentation> |
getAvailableApplicationScopeMappings()
The available application-level roles that can be associated with the client's scope
|
List<RoleRepresentation> |
getCompositeApplicationScopeMappings()
Get effective application roles that are associated with the client's scope for a specific application.
|
protected RealmModel realm
protected ClientModel client
protected KeycloakSession session
protected ApplicationModel app
public ScopeMappedApplicationResource(RealmModel realm, RealmAuth auth, ClientModel client, KeycloakSession session, ApplicationModel app)
@GET @Produces(value="application/json") public List<RoleRepresentation> getApplicationScopeMappings()
@Path(value="available") @GET @Produces(value="application/json") public List<RoleRepresentation> getAvailableApplicationScopeMappings()
@Path(value="composite") @GET @Produces(value="application/json") public List<RoleRepresentation> getCompositeApplicationScopeMappings()
@POST @Consumes(value="application/json") public void addApplicationScopeMapping(List<RoleRepresentation> roles)
roles
- @DELETE @Consumes(value="application/json") public void deleteApplicationScopeMapping(List<RoleRepresentation> roles)
roles
- Copyright © 2015. All Rights Reserved.