Skip to content

Commit

Permalink
docs: example update (#563)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
JosueFunez authored May 22, 2024
1 parent 0ec489d commit 9d0772b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/source/modules/openid_client.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 9d0772b

Please sign in to comment.