Omkar008 commited on
Commit
7c15110
1 Parent(s): 732b374

Update test.py

Browse files
Files changed (1) hide show
  1. test.py +7 -5
test.py CHANGED
@@ -13,11 +13,13 @@ oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token")
13
 
14
 
15
  # Replace these with your own values from the Google Developer Console
16
- GOOGLE_CLIENT_ID = ""
17
- GOOGLE_CLIENT_SECRET = ""
18
- GOOGLE_REDIRECT_URI = ""
19
-
20
 
 
 
 
21
 
22
  @app.get("/")
23
  async def login_google():
@@ -28,7 +30,7 @@ async def login_google():
28
 
29
  webbrowser.open(oauth_url)
30
  return {
31
- "url": f"https://accounts.google.com/o/oauth2/auth?response_type=code&client_id={GOOGLE_CLIENT_ID}&redirect_uri={GOOGLE_REDIRECT_URI}&scope=openid%20profile%20email&access_type=offline"
32
  }
33
 
34
  @app.get("/auth/google")
 
13
 
14
 
15
  # Replace these with your own values from the Google Developer Console
16
+ # GOOGLE_CLIENT_ID = ""
17
+ # GOOGLE_CLIENT_SECRET = ""
18
+ # GOOGLE_REDIRECT_URI = ""
 
19
 
20
+ GOOGLE_CLIENT_ID = "485753721652-5uta3e18va2g6cnkldib2d68q39t4vod.apps.googleusercontent.com"
21
+ GOOGLE_CLIENT_SECRET = "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"
22
+ GOOGLE_REDIRECT_URI = "https://omkar008-receipt-radar-test.hf.space/auth/google"
23
 
24
  @app.get("/")
25
  async def login_google():
 
30
 
31
  webbrowser.open(oauth_url)
32
  return {
33
+ f"https://accounts.google.com/o/oauth2/auth?response_type=code&client_id={GOOGLE_CLIENT_ID}&redirect_uri={GOOGLE_REDIRECT_URI}&scope=openid%20profile%20email&access_type=offline"
34
  }
35
 
36
  @app.get("/auth/google")