Path: / admin / realms / {realm} / oauth-clients / {clientId} / client-secret

Get the secret of the oauth client

Path parameters:
realm - realm name (not id!)
clientId - oauth client's clientId

Resource Methods
Method Summary
NameDescription
POST /admin/realms/{realm}/oauth-clients/{clientId}/client-secretGenerate a new client secret for the oauth client
GET /admin/realms/{realm}/oauth-clients/{clientId}/client-secretGet the secret of the oauth client

Method Detail

POST /admin/realms/{realm}/oauth-clients/{clientId}/client-secret

Generate a new client secret for the oauth client

HTTP Example:
POST /admin/realms/{realm}/oauth-clients/{clientId}/client-secret
API Example:

OAuthClientResource.regenerateSecret({'realm': /* name realm name (not id!) */,
  'clientId': /* clientId oauth client's clientId */});

Output:
CredentialRepresentation -
Produces:
application/json
Consumes:
application/json

GET /admin/realms/{realm}/oauth-clients/{clientId}/client-secret

Get the secret of the oauth client

HTTP Example:
GET /admin/realms/{realm}/oauth-clients/{clientId}/client-secret
API Example:

OAuthClientResource.getClientSecret({'realm': /* name realm name (not id!) */,
  'clientId': /* clientId oauth client's clientId */});

Output:
CredentialRepresentation -
Produces:
application/json