public class OAuthClientsResource extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.jboss.logging.Logger |
logger |
protected RealmModel |
realm |
protected KeycloakSession |
session |
| Constructor and Description |
|---|
OAuthClientsResource(RealmModel realm,
RealmAuth auth,
KeycloakSession session) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createOAuthClient(javax.ws.rs.core.UriInfo uriInfo,
OAuthClientRepresentation rep)
Create an oauth client
|
OAuthClientResource |
getOAuthClient(String id)
Base path to manage one specific oauth client
|
List<OAuthClientRepresentation> |
getOAuthClients()
Get a list of oauth clients in this realm.
|
protected static final org.jboss.logging.Logger logger
protected RealmModel realm
protected KeycloakSession session
public OAuthClientsResource(RealmModel realm, RealmAuth auth, KeycloakSession session)
@GET @Produces(value="application/json") public List<OAuthClientRepresentation> getOAuthClients()
@POST
@Consumes(value="application/json")
public javax.ws.rs.core.Response createOAuthClient(@Context
javax.ws.rs.core.UriInfo uriInfo,
OAuthClientRepresentation rep)
uriInfo - rep - @Path(value="{id}")
public OAuthClientResource getOAuthClient(@PathParam(value="id")
String id)
id - oauth client's id (not clientId!)Copyright © 2014. All Rights Reserved.