Spaces:
Sleeping
Sleeping
jonathanjordan21
commited on
Commit
•
fccb8e5
1
Parent(s):
1a710f4
Update app.py
Browse files
app.py
CHANGED
@@ -91,6 +91,7 @@ async def redirect(request: Request):
|
|
91 |
REDIRECT_URI = f"https://{SPACE_HOST}/login/callback"
|
92 |
CLIENT_ID = os.getenv("OAUTH_CLIENT_ID")
|
93 |
STATE = "test123"
|
|
|
94 |
url = f"https://huggingface.co/oauth/authorize?redirect_uri={REDIRECT_URI}&scope=openid%20profile&client_id={CLIENT_ID}&state={STATE}"
|
95 |
return RedirectResponse(url)
|
96 |
|
|
|
91 |
REDIRECT_URI = f"https://{SPACE_HOST}/login/callback"
|
92 |
CLIENT_ID = os.getenv("OAUTH_CLIENT_ID")
|
93 |
STATE = "test123"
|
94 |
+
print(SPACE_HOST, REDIRECT_URI, CLIENT_ID, STATE, "TEST PRINT")
|
95 |
url = f"https://huggingface.co/oauth/authorize?redirect_uri={REDIRECT_URI}&scope=openid%20profile&client_id={CLIENT_ID}&state={STATE}"
|
96 |
return RedirectResponse(url)
|
97 |
|