Skip to content

Commit

Permalink
fix for updated keycloak openid-connect path
Browse files Browse the repository at this point in the history
  • Loading branch information
jreadey committed Dec 14, 2024
1 parent 0b20fcd commit a301aca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions h5pyd/_apps/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ def __init__(self, config_file=None, custom_entries=[], **kwargs):
continue
k = fields[0].strip()
v = fields[1].strip()
words = v.split()
if len(words) > 1 and words[1].startswith("#"):
# ignore any inline comment
v = words[0]
if k not in self._names:
raise ValueError(f"undefined option: {k}")
if k in self._choices:
Expand Down
2 changes: 1 addition & 1 deletion h5pyd/_hl/openid.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def _getKeycloakUrl(self):
raise KeyError("keycloak client_id not set")

url = self.config['keycloak_uri']
url += "/auth/realms/"
url += "/realms/"
url += self.config['keycloak_realm']
url += "/protocol/openid-connect/token"

Expand Down

0 comments on commit a301aca

Please sign in to comment.