Class ClientScopeEvaluateResource
- java.lang.Object
- 
- org.keycloak.services.resources.admin.ClientScopeEvaluateResource
 
- 
 public class ClientScopeEvaluateResource extends Object - Author:
- Marek Posolda
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classClientScopeEvaluateResource.ProtocolMapperEvaluationRepresentation
 - 
Field SummaryFields Modifier and Type Field Description protected static org.jboss.logging.Loggerlogger
 - 
Constructor SummaryConstructors Constructor Description ClientScopeEvaluateResource(KeycloakSession session, javax.ws.rs.core.UriInfo uriInfo, RealmModel realm, AdminPermissionEvaluator auth, ClientModel client, ClientConnection clientConnection)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessTokengenerateExampleAccessToken(String scopeParam, String userId)Create JSON with payload of example access tokenIDTokengenerateExampleIdToken(String scopeParam, String userId)Create JSON with payload of example id tokenMap<String,Object>generateExampleUserinfo(String scopeParam, String userId)Create JSON with payload of example user infoStream<ClientScopeEvaluateResource.ProtocolMapperEvaluationRepresentation>getGrantedProtocolMappers(String scopeParam)Return list of all protocol mappers, which will be used when generating tokens issued for particular client.ClientScopeEvaluateScopeMappingsResourcescopeMappings(String scopeParam, String roleContainerId)
 
- 
- 
- 
Constructor Detail- 
ClientScopeEvaluateResourcepublic ClientScopeEvaluateResource(KeycloakSession session, javax.ws.rs.core.UriInfo uriInfo, RealmModel realm, AdminPermissionEvaluator auth, ClientModel client, ClientConnection clientConnection) 
 
- 
 - 
Method Detail- 
scopeMappings@Path("scope-mappings/{roleContainerId}") public ClientScopeEvaluateScopeMappingsResource scopeMappings(@QueryParam("scope") String scopeParam, @PathParam("roleContainerId") String roleContainerId)- Parameters:
- scopeParam-
- roleContainerId- either realm name OR client UUID
- Returns:
 
 - 
getGrantedProtocolMappers@GET @Path("protocol-mappers") @Produces("application/json") public Stream<ClientScopeEvaluateResource.ProtocolMapperEvaluationRepresentation> getGrantedProtocolMappers(@QueryParam("scope") String scopeParam)Return list of all protocol mappers, which will be used when generating tokens issued for particular client. This means protocol mappers assigned to this client directly and protocol mappers assigned to all client scopes of this client.- Returns:
 
 - 
generateExampleUserinfo@GET @Path("generate-example-userinfo") @Produces("application/json") public Map<String,Object> generateExampleUserinfo(@QueryParam("scope") String scopeParam, @QueryParam("userId") String userId)Create JSON with payload of example user info- Returns:
 
 - 
generateExampleIdToken@GET @Path("generate-example-id-token") @Produces("application/json") public IDToken generateExampleIdToken(@QueryParam("scope") String scopeParam, @QueryParam("userId") String userId)Create JSON with payload of example id token- Returns:
 
 - 
generateExampleAccessToken@GET @Path("generate-example-access-token") @Produces("application/json") public AccessToken generateExampleAccessToken(@QueryParam("scope") String scopeParam, @QueryParam("userId") String userId)Create JSON with payload of example access token- Returns:
 
 
- 
 
-