python-keycloak icon indicating copy to clipboard operation
python-keycloak copied to clipboard

Where is the client_secret_key coming from?

Open zopyx opened this issue 5 years ago • 1 comments

I have this basic code

from keycloak import KeycloakAdmin

keycloak_admin = KeycloakAdmin(server_url="http://localhost:8080/auth/",
                               username='admin',
                               password='admin',
                               realm_name="master",
                               client_secret_key="client-secret",
                               verify=True)

Where can I find/set the client_secret_key in Keycloak?

zopyx avatar Apr 24 '20 16:04 zopyx

@zopyx: Client secret key is available only for confidential & bearer only clients. So when you create a client. It has default public access type. So once you change your client "Access-Type" to "Confidential/ Bearer Only", you should see credentials tab for that client. You can copy client_secret from there.

hariyerramsetty avatar Apr 29 '20 06:04 hariyerramsetty