Class ClientScopeEvaluateResource

java.lang.Object
org.keycloak.services.resources.admin.ClientScopeEvaluateResource

public class ClientScopeEvaluateResource extends Object
Author:
Marek Posolda
  • Field Details

    • logger

      protected static final org.jboss.logging.Logger logger
  • Constructor Details

  • Method Details

    • 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: