Search code examples
oauth-2.0keycloak

Do Keycloak Clients have a Client Secret?


Does keycloak client id has a client secret? I tried to create a client in keycloak admin but I was not able to spot client secret.

Is it auto generated? Where can I get the secret?


Solution

  • KC > v22

    Your client needs to have Client authentication enabled

    Client Authentication

    KC < v22

    Your client need to have the access-type set to confidential , then you will have a new tab credentials where you will see the client secret.
    https://wjw465150.gitbooks.io/keycloak-documentation/content/server_admin/topics/clients/oidc/confidential.html