## Path: / admin / realms / {realm} / oauth-clients-by-id / {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
  Name | Description
  --- | ---
  `POST /admin/realms/{realm}/oauth-clients-by-id/{clientId}/client-secret` | Generate a new client secret for the oauth client
  `GET /admin/realms/{realm}/oauth-clients-by-id/{clientId}/client-secret` | Get the secret of the oauth client

Method Detail
### POST /admin/realms/{realm}/oauth-clients-by-id/{clientId}/client-secret Generate a new client secret for the oauth client
  HTTP Example:
      POST /admin/realms/{realm}/oauth-clients-by-id/{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-by-id/{clientId}/client-secret Get the secret of the oauth client
  HTTP Example:
      GET /admin/realms/{realm}/oauth-clients-by-id/{clientId}/client-secret
| API Example: `OAuthClientResource.getClientSecret({'realm': /* name realm name (not id!) */, 'clientId': /* clientId oauth client's clientId */});`
Output: `CredentialRepresentation` - Produces: application/json