From 51b7f29dd40642d18392eb541de42820c11ed584 Mon Sep 17 00:00:00 2001 From: twsl <45483159+twsI@users.noreply.github.com> Date: Fri, 14 Feb 2020 00:29:13 +0100 Subject: [PATCH] Fixed mixed up urls --- keycloak/keycloak_openid.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keycloak/keycloak_openid.py b/keycloak/keycloak_openid.py index 2d12678..c39dbf6 100644 --- a/keycloak/keycloak_openid.py +++ b/keycloak/keycloak_openid.py @@ -264,7 +264,7 @@ class KeycloakOpenID: :return: """ params_path = {"realm-name": self.realm_name} - data_raw = self.connection.raw_get(URL_REALM.format(**params_path)) + data_raw = self.connection.raw_get(URL_CERTS.format(**params_path)) return raise_error_from_response(data_raw, KeycloakGetError) def public_key(self): @@ -274,7 +274,7 @@ class KeycloakOpenID: :return: """ params_path = {"realm-name": self.realm_name} - data_raw = self.connection.raw_get(URL_CERTS.format(**params_path)) + data_raw = self.connection.raw_get(URL_REALM.format(**params_path)) return raise_error_from_response(data_raw, KeycloakGetError)['public_key']