Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed May 23, 2024
1 parent ef4ccc8 commit 3b165c9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions backend/src/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,9 @@ async def auth_callback(code: str) -> RedirectResponse:

# Check in payload if logged in user has the required permissions
if (
("https://explorer.icare4cvd.eu" in access_payload["aud"]
and "read:icare4cvd-dataset-descriptions" in access_payload["permissions"])
or settings.dev_mode
):
"https://explorer.icare4cvd.eu" in access_payload["aud"]
and "read:icare4cvd-dataset-descriptions" in access_payload["permissions"]
) or settings.dev_mode:
# TODO: for LUCE blockchain: check if user email has a blockchain address
# Where? Either a JSON file on the server, or in the triplestore
# blockchain_addrs = json.load(settings.data_folder / "blockchain_addresses.json")
Expand Down

0 comments on commit 3b165c9

Please sign in to comment.