Fixed runtime error
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user