python-keycloak
python-keycloak copied to clipboard
Where is the client_secret_key coming from?
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: 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.