Skip to content

Commit

Permalink
Added logic for different keycloak auth paths (ibutsu#567)
Browse files Browse the repository at this point in the history
* Added logic for different keycloak auth paths

* Modified code with suggestions

* Fixed linting issues

Hardcoded Keycloak paths

Removed /auth from server_url

Linting changes

Hardcoded Keycloak paths (ibutsu#577)

Added debug for frontend login

Added logic for different keycloak auth paths (ibutsu#567)

* Added logic for different keycloak auth paths

* Modified code with suggestions

* Fixed linting issues

Hardcoded Keycloak paths (ibutsu#577)

Isolated deploy main (ibutsu#579)

* Hardcoded Keycloak paths

* Removed /auth from server_url

* Linting changes

Isolated deploy main (ibutsu#580)

* Hardcoded Keycloak paths

* Removed /auth from server_url

* Linting changes

* Debug statements

* Debug statements

* linting

Isolated deploy main (ibutsu#583)

* Hardcoded Keycloak paths

* Removed /auth from server_url

* Linting changes

Added logic for different keycloak auth paths (ibutsu#567) (ibutsu#584)

* Added logic for different keycloak auth paths

* Modified code with suggestions

* Fixed linting issues

Hardcoded Keycloak paths

Removed /auth from server_url

Linting changes

Hardcoded Keycloak paths (ibutsu#577)

Added debug for frontend login

Reverted internal login path
  • Loading branch information
wcater803 committed Feb 27, 2025
1 parent 46a8a9f commit 05763dd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/ibutsu_server/util/keycloak.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ def get_keycloak_config(is_private=False):
"authorization_url": build_url(realm_base_url, "protocol/openid-connect/auth"),
"realm": realm,
"client_id": current_app.config.get("KEYCLOAK_CLIENT_ID"),
"redirect_uri": backend_url
+ current_app.config.get("KEYCLOAK_AUTH_PATH", "/login/auth/keycloak"),
"redirect_uri": backend_url + "/login/auth/keycloak",
}
print(f"authorization_url: {config['authorization_url']} ")
if current_app.config.get("KEYCLOAK_ICON"):
Expand Down

0 comments on commit 05763dd

Please sign in to comment.