Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

Commit

Permalink
Add env for redirect var
Browse files Browse the repository at this point in the history
  • Loading branch information
CannonLock committed Dec 1, 2023
1 parent e40ca4e commit 6a540a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/routes/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ async def redirect_authorization(return_url: str = None):
'scope': "openid profile email org.cilogon.userinfo",
'client_id': os.environ['OAUTH_CLIENT_ID'],
'response_type': "code",
'redirect_uri': 'http://localhost:8000/security/callback'
'redirect_uri': os.environ['REDIRECT_URI']
}

if return_url is not None:
Expand Down

0 comments on commit 6a540a1

Please sign in to comment.