Spaces:
Sleeping
Sleeping
Commit
·
08df1d7
1
Parent(s):
7c8ca97
main.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
from fastapi import FastAPI
|
| 2 |
from fastapi.staticfiles import StaticFiles
|
| 3 |
from fastapi.responses import FileResponse
|
| 4 |
from fastapi import FastAPI, BackgroundTasks, HTTPException, Query
|
|
@@ -413,7 +413,7 @@ async def oauth_callback(code: str, state: str):
|
|
| 413 |
return {"username": username}
|
| 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,
|
|
|
|
| 1 |
+
from fastapi import FastAPI, Request
|
| 2 |
from fastapi.staticfiles import StaticFiles
|
| 3 |
from fastapi.responses import FileResponse
|
| 4 |
from fastapi import FastAPI, BackgroundTasks, HTTPException, Query
|
|
|
|
| 413 |
return {"username": username}
|
| 414 |
|
| 415 |
@app.get("/oauth-config")
|
| 416 |
+
async def get_oauth_config(request: Request):
|
| 417 |
client_host = request.client.host
|
| 418 |
return {
|
| 419 |
"client_id": client_id,
|