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 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, }