Skip to content

Commit

Permalink
more fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mfshao committed Jul 12, 2024
1 parent 5649e8f commit 12605c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mds/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ async def create_object_for_id(
try:
# NOTE: token can be None if no Authorization header was provided, we expect
# this to cause a downstream exception since it is invalid
token_claims = await access_token("user", "openid", purpose="access")(token)
token_claims = await access_token(
"user", "openid", audience="openid", purpose="access"
)(token)
except Exception as e:
logger.error(e.detail if hasattr(e, "detail") else e, exc_info=True)
raise HTTPException(
Expand Down

0 comments on commit 12605c8

Please sign in to comment.