Skip to content

Commit

Permalink
Update auth.py
Browse files Browse the repository at this point in the history
  • Loading branch information
daisieh committed Jan 17, 2025
1 parent 5252411 commit 2205d25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/authx/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2205d25

Please sign in to comment.