Browse Source

docs: example update (#563)

Example updated because for KeyCloak 17+ the authentication url changed. The "/auth" at the end of the server_url is not necessary; if we add this it will generate a 404 error.
pull/568/head
Josué Funez 1 month ago
committed by GitHub
parent
commit
9d0772b2d1
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      docs/source/modules/openid_client.rst

3
docs/source/modules/openid_client.rst

@ -12,7 +12,8 @@ Configure client OpenID
from keycloak import KeycloakOpenID
# Configure client
keycloak_openid = KeycloakOpenID(server_url="http://localhost:8080/auth/",
# For versions older than 18 /auth/ must be added at the end of the server_url.
keycloak_openid = KeycloakOpenID(server_url="http://localhost:8080/",
client_id="example_client",
realm_name="example_realm",
client_secret_key="secret")

Loading…
Cancel
Save