From 9d0772b2d1d14bdfa6c897e8c58c2c788b71dea5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Funez?= Date: Tue, 21 May 2024 22:50:14 -0600 Subject: [PATCH] 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. --- docs/source/modules/openid_client.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/source/modules/openid_client.rst b/docs/source/modules/openid_client.rst index fc61697..c3c0c90 100644 --- a/docs/source/modules/openid_client.rst +++ b/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")