From 6bfbd0d15fa5981f35e5a6866b3efd62ef0dc968 Mon Sep 17 00:00:00 2001 From: Erik Cederstrand Date: Wed, 25 May 2022 08:32:57 +0200 Subject: [PATCH 1/2] fix: correct spelling of public API method BREAKING CHANGE: Renames `KeycloakOpenID.well_know` to `KeycloakOpenID.well_known` --- CHANGELOG.md | 4 ++++ README.md | 2 +- src/keycloak/keycloak_openid.py | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4492c3d..72b757b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -42,3 +42,7 @@ All notable changes to this project will be documented in this file. - Add get_idps - Rework group functions + + ## [master] + + * Renamed `KeycloakOpenID.well_know` to `KeycloakOpenID.well_known` diff --git a/README.md b/README.md index 692ce48..85e3d34 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ keycloak_openid = KeycloakOpenID(server_url="http://localhost:8080/auth/", client_secret_key="secret") # Get WellKnow -config_well_know = keycloak_openid.well_know() +config_well_known = keycloak_openid.well_known() # Get Token token = keycloak_openid.token("user", "password") diff --git a/src/keycloak/keycloak_openid.py b/src/keycloak/keycloak_openid.py index f0b73a6..e73e963 100644 --- a/src/keycloak/keycloak_openid.py +++ b/src/keycloak/keycloak_openid.py @@ -159,7 +159,7 @@ class KeycloakOpenID: return token_info - def well_know(self): + def well_known(self): """The most important endpoint to understand is the well-known configuration endpoint. It lists endpoints and other configuration options relevant to the OpenID Connect implementation in Keycloak. @@ -180,7 +180,7 @@ class KeycloakOpenID: :return: """ params_path = { - "authorization-endpoint": self.well_know()["authorization_endpoint"], + "authorization-endpoint": self.well_known()["authorization_endpoint"], "client-id": self.client_id, "redirect-uri": redirect_uri, } From 5560799191e3cbcb0a7ec3b549cc1e5e388a7ef5 Mon Sep 17 00:00:00 2001 From: Erik Cederstrand Date: Wed, 25 May 2022 08:36:19 +0200 Subject: [PATCH 2/2] chore: add missing newline --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 24f085b..0c17079 100644 --- a/.gitignore +++ b/.gitignore @@ -105,4 +105,4 @@ main.py main2.py s3air-authz-config.json .vscode -_build \ No newline at end of file +_build