Class ClientScopeEvaluateResource
java.lang.Object
org.keycloak.services.resources.admin.ClientScopeEvaluateResource
- Author:
- Marek Posolda
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Field Summary
-
Constructor Summary
ConstructorDescriptionClientScopeEvaluateResource
(KeycloakSession session, jakarta.ws.rs.core.UriInfo uriInfo, RealmModel realm, AdminPermissionEvaluator auth, ClientModel client, ClientConnection clientConnection) -
Method Summary
Modifier and TypeMethodDescriptiongenerateExampleAccessToken
(String scopeParam, String userId) Create JSON with payload of example access tokengenerateExampleIdToken
(String scopeParam, String userId) Create JSON with payload of example id tokengenerateExampleUserinfo
(String scopeParam, String userId) Create JSON with payload of example user infogetGrantedProtocolMappers
(String scopeParam) Return list of all protocol mappers, which will be used when generating tokens issued for particular client.scopeMappings
(String scopeParam, String roleContainerId)
-
Field Details
-
logger
protected static final org.jboss.logging.Logger logger
-
-
Constructor Details
-
ClientScopeEvaluateResource
public ClientScopeEvaluateResource(KeycloakSession session, jakarta.ws.rs.core.UriInfo uriInfo, RealmModel realm, AdminPermissionEvaluator auth, ClientModel client, ClientConnection clientConnection)
-
-
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:
-