Skip to content

Commit

Permalink
Merge pull request #10 from MetroStar/keycloak-fix
Browse files Browse the repository at this point in the history
Fix Keycloak client check to work with 3.9.x and 4.0.0
  • Loading branch information
kenafoster authored May 7, 2024
2 parents 364df42 + 6688a92 commit 187422b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/nebari_plugin_self_registration/__about__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.6"
__version__ = "0.0.7"
4 changes: 2 additions & 2 deletions src/nebari_plugin_self_registration/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ def _attempt_keycloak_connection(
keycloak_url,
username=username,
password=password,
realm_name=master_realm_name,
user_realm_name=master_realm_name,
realm_name=client_realm_name,
client_id=client_id,
verify=verify,
)
realm_admin.realm_name = client_realm_name # switch to nebari realm
c = realm_admin.get_client_id(CLIENT_NAME) # lookup client guid
existing_client = realm_admin.get_client(c) # query client info
if existing_client != None and existing_client["name"] == CLIENT_NAME:
Expand Down

0 comments on commit 187422b

Please sign in to comment.