Skip to content

Commit

Permalink
Satisfy ruff formatter.
Browse files Browse the repository at this point in the history
  • Loading branch information
dokterbob committed Nov 25, 2024
1 parent 9832170 commit da2161c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions backend/chainlit/oauth_providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
Expand All @@ -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():
Expand Down

0 comments on commit da2161c

Please sign in to comment.