thomasgauthier commited on
Commit
7c8ca97
·
1 Parent(s): 8565a1a

tring something

Browse files
Files changed (1) hide show
  1. main.py +2 -1
main.py CHANGED
@@ -414,9 +414,10 @@ async def oauth_callback(code: str, state: str):
414
 
415
  @app.get("/oauth-config")
416
  async def get_oauth_config():
 
417
  return {
418
  "client_id": client_id,
419
- "redirect_uri": f'https://{space_host}/login/callback'
420
  }
421
 
422
 
 
414
 
415
  @app.get("/oauth-config")
416
  async def get_oauth_config():
417
+ client_host = request.client.host
418
  return {
419
  "client_id": client_id,
420
+ "redirect_uri": f'https://{client_host}/login/callback'
421
  }
422
 
423