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 8bb7afb commit 0f8cf1e
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 @@ -732,7 +732,7 @@ def add_pending_user_to_opa(user_token):
response, status_code = get_service_store_secret("opa", key=f"pending_users")
if status_code != 200:
return response, status_code

logger.debug(f"token is {user_token}")
user_name = get_user_id(None, token=user_token)
if user_name is None:
return {"error": "Could not verify jwt or obtain user ID"}, 403
Expand Down

0 comments on commit 0f8cf1e

Please sign in to comment.