public class ClientScopeEvaluateResource extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ClientScopeEvaluateResource.ProtocolMapperEvaluationRepresentation |
Modifier and Type | Field and Description |
---|---|
protected static org.jboss.logging.Logger |
logger |
Constructor and Description |
---|
ClientScopeEvaluateResource(KeycloakSession session,
javax.ws.rs.core.UriInfo uriInfo,
RealmModel realm,
AdminPermissionEvaluator auth,
ClientModel client,
ClientConnection clientConnection) |
Modifier and Type | Method and Description |
---|---|
AccessToken |
generateExampleAccessToken(String scopeParam,
String userId)
Create JSON with payload of example access token
|
IDToken |
generateExampleIdToken(String scopeParam,
String userId)
Create JSON with payload of example id token
|
Map<String,Object> |
generateExampleUserinfo(String scopeParam,
String userId)
Create JSON with payload of example user info
|
Stream<ClientScopeEvaluateResource.ProtocolMapperEvaluationRepresentation> |
getGrantedProtocolMappers(String scopeParam)
Return list of all protocol mappers, which will be used when generating tokens issued for particular client.
|
ClientScopeEvaluateScopeMappingsResource |
scopeMappings(String scopeParam,
String roleContainerId) |
public ClientScopeEvaluateResource(KeycloakSession session, javax.ws.rs.core.UriInfo uriInfo, RealmModel realm, AdminPermissionEvaluator auth, ClientModel client, ClientConnection clientConnection)
@Path(value="scope-mappings/{roleContainerId}") public ClientScopeEvaluateScopeMappingsResource scopeMappings(@QueryParam(value="scope") String scopeParam, @PathParam(value="roleContainerId") String roleContainerId)
scopeParam
- roleContainerId
- either realm name OR client UUID@GET @Path(value="protocol-mappers") @Produces(value="application/json") public Stream<ClientScopeEvaluateResource.ProtocolMapperEvaluationRepresentation> getGrantedProtocolMappers(@QueryParam(value="scope") String scopeParam)
@GET @Path(value="generate-example-userinfo") @Produces(value="application/json") public Map<String,Object> generateExampleUserinfo(@QueryParam(value="scope") String scopeParam, @QueryParam(value="userId") String userId)
@GET @Path(value="generate-example-id-token") @Produces(value="application/json") public IDToken generateExampleIdToken(@QueryParam(value="scope") String scopeParam, @QueryParam(value="userId") String userId)
@GET @Path(value="generate-example-access-token") @Produces(value="application/json") public AccessToken generateExampleAccessToken(@QueryParam(value="scope") String scopeParam, @QueryParam(value="userId") String userId)
Copyright © 2021 JBoss by Red Hat. All rights reserved.