From 6688a9294424a6e3935573823ccfc2599fae9e91 Mon Sep 17 00:00:00 2001 From: Ken Foster Date: Mon, 6 May 2024 17:52:42 +0000 Subject: [PATCH] Fix Keycloak client check to work with 3.9.x and 4.0.0 --- src/nebari_plugin_self_registration/__about__.py | 2 +- src/nebari_plugin_self_registration/__init__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nebari_plugin_self_registration/__about__.py b/src/nebari_plugin_self_registration/__about__.py index 034f46c..6526deb 100644 --- a/src/nebari_plugin_self_registration/__about__.py +++ b/src/nebari_plugin_self_registration/__about__.py @@ -1 +1 @@ -__version__ = "0.0.6" +__version__ = "0.0.7" diff --git a/src/nebari_plugin_self_registration/__init__.py b/src/nebari_plugin_self_registration/__init__.py index bbeb6fb..f51e077 100644 --- a/src/nebari_plugin_self_registration/__init__.py +++ b/src/nebari_plugin_self_registration/__init__.py @@ -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: