Fix: httpx import in auth callback
This commit is contained in:
parent
c3bcf1501d
commit
9195d976bc
@ -309,7 +309,8 @@ async def auth_callback(request: Request, code: str = "", state: str = ""):
|
|||||||
base = str(request.base_url).rstrip("/").replace("http://", "https://")
|
base = str(request.base_url).rstrip("/").replace("http://", "https://")
|
||||||
redirect_uri = f"{base}/api/auth/callback"
|
redirect_uri = f"{base}/api/auth/callback"
|
||||||
|
|
||||||
async with httpx.AsyncClient(timeout=10) as client:
|
import httpx as _httpx
|
||||||
|
async with _httpx.AsyncClient(timeout=10) as client:
|
||||||
resp = await client.post(token_url, data={
|
resp = await client.post(token_url, data={
|
||||||
"grant_type": "authorization_code",
|
"grant_type": "authorization_code",
|
||||||
"client_id": settings.keycloak_client_id,
|
"client_id": settings.keycloak_client_id,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user