Skip to content

Commit

Permalink
rename to match ingest userauthorization schema
Browse files Browse the repository at this point in the history
  • Loading branch information
daisieh committed Jan 17, 2025
1 parent a0be093 commit 5ea3af0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/authx/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ def add_pending_user_to_opa(user_token):
return {"error": "Could not verify jwt or obtain user ID"}, 403

user_dict = {
"user": {
"userinfo": {
"user_name": user_name,
"sample_jwt": user_token
}
Expand Down Expand Up @@ -780,7 +780,7 @@ def approve_pending_user_in_opa(user_name):
pending_users = response["pending_users"]
if user_name in pending_users:
user_dict = pending_users[user_name]
user_dict["programs"] = {}
user_dict["dac_authorizations"] = {}
response2, status_code = write_user_in_opa(user_dict)
if status_code == 200:
pending_users.pop(user_name)
Expand Down

0 comments on commit 5ea3af0

Please sign in to comment.