Fixed runtime error

This commit is contained in:
Roger Joys
2026-03-15 17:17:27 -07:00
parent db28977633
commit b421e85558

View File

@@ -16,9 +16,9 @@ def get_authorization_url(config: AppConfig, state: str) -> str:
"state": state, "state": state,
} }
query = "&".join(f"{k}={v}" for k, v in params.items()) query = "&".join(f"{k}={v}" for k, v in params.items())
url = f"{config.authentik_host}/application/o/authorize/?{query}"
logger.info("Authorization URL: %s", url) logger.info("Authorization URL: %s", url)
return f"{config.authentik_host}/application/o/authorize/?{query}" return url
async def exchange_code_for_token(config: AppConfig, code: str) -> dict: async def exchange_code_for_token(config: AppConfig, code: str) -> dict:
async with httpx.AsyncClient() as client: async with httpx.AsyncClient() as client: