From 2205d251bb4eb4f6c06273283d057f2f44798012 Mon Sep 17 00:00:00 2001 From: Daisie Huang Date: Thu, 16 Jan 2025 22:08:14 -0800 Subject: [PATCH] Update auth.py --- src/authx/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/authx/auth.py b/src/authx/auth.py index 787d7b6..20252c0 100644 --- a/src/authx/auth.py +++ b/src/authx/auth.py @@ -703,7 +703,7 @@ def set_role_type_in_opa(role_type, members): ##### def write_user_in_opa(user_dict): - safe_name = urllib.parse.quote_plus(user_dict['user']['user_name']) + safe_name = urllib.parse.quote_plus(user_dict['userinfo']['user_name']) response, status_code = set_service_store_secret("opa", key=f"users/{safe_name}", value=json.dumps(user_dict)) return response, status_code