Skip to content

Commit

Permalink
Update app.py - Fixed typo affecting KEYCLOAK_ADMIN_URI (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
schreiberstein authored Aug 26, 2024
1 parent f6c3fb1 commit b4be01b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sources/orthanc_auth_service/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@

if needKeycloakAdmin or is_secret_defined("KEYCLOAK_CLIENT_SECRET"):
keycloak_client_secret = get_secret_or_die("KEYCLOAK_CLIENT_SECRET")
keycloak_admin_uri = os.environ.get("KECLOAK_ADMIN_URI", "http://keycloak:8080/admin/realms/orthanc/")
keycloak_admin_uri = os.environ.get("KEYCLOAK_ADMIN_URI", "http://keycloak:8080/admin/realms/orthanc/")
keycloak_admin_client = KeycloakAdmin(keycloak_uri=keycloak_uri,
keycloak_admin_uri=keycloak_admin_uri,
keycloak_client_secret=keycloak_client_secret,
roles_configuration=roles_configuration)

if keycloak_admin_client is None:
logging.warning("KECLOAK_ADMIN_URI and/or KEYCLOAK_CLIENT_SECRET is not set, you won't be able to access settings/roles API routes")
logging.warning("KEYCLOAK_ADMIN_URI and/or KEYCLOAK_CLIENT_SECRET is not set, you won't be able to access settings/roles API routes")

app = FastAPI()

Expand Down Expand Up @@ -257,4 +257,4 @@ def set_settings_roles(roles_config_request: RolesConfigurationModel):
logging.info("set settings roles ")

ingest_keycloak_roles(roles_config_request)
roles_configuration.update_configured_roles(roles_config_request)
roles_configuration.update_configured_roles(roles_config_request)

0 comments on commit b4be01b

Please sign in to comment.