From da2161c69363870a266ea9bf83292d1ecad1cf1f Mon Sep 17 00:00:00 2001 From: Mathijs de Bruin Date: Mon, 25 Nov 2024 12:27:00 +0000 Subject: [PATCH] Satisfy ruff formatter. --- backend/chainlit/oauth_providers.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/backend/chainlit/oauth_providers.py b/backend/chainlit/oauth_providers.py index 945734cb9a..744ffff621 100644 --- a/backend/chainlit/oauth_providers.py +++ b/backend/chainlit/oauth_providers.py @@ -667,8 +667,8 @@ async def get_user_info(self, token: str): class KeycloakOAuthProvider(OAuthProvider): env = [ - "OAUTH_KEYCLOAK_CLIENT_ID", - "OAUTH_KEYCLOAK_CLIENT_SECRET", + "OAUTH_KEYCLOAK_CLIENT_ID", + "OAUTH_KEYCLOAK_CLIENT_SECRET", "OAUTH_KEYCLOAK_REALM", "OAUTH_KEYCLOAK_BASE_URL", ] @@ -679,11 +679,13 @@ def __init__(self): self.client_secret = os.environ.get("OAUTH_KEYCLOAK_CLIENT_SECRET") self.realm = os.environ.get("OAUTH_KEYCLOAK_REALM") self.base_url = os.environ.get("OAUTH_KEYCLOAK_BASE_URL") - self.authorize_url = f"{self.base_url}/realms/{self.realm}/protocol/openid-connect/auth" + self.authorize_url = ( + f"{self.base_url}/realms/{self.realm}/protocol/openid-connect/auth" + ) self.authorize_params = { "scope": "profile email openid", - "response_type": "code" + "response_type": "code", } if prompt := self.get_prompt():