Skip to content

Commit

Permalink
[IMP] auth_oidc: pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ap-wtioit committed Mar 20, 2024
1 parent 79116c3 commit beb550b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion auth_oidc/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class OpenIDLogin(OAuthLogin):
def list_providers(self):
providers = super(OpenIDLogin, self).list_providers()
providers = super().list_providers()
for provider in providers:
flow = provider.get("flow")
if flow in ("id_token", "id_token_code"):
Expand Down
2 changes: 1 addition & 1 deletion auth_oidc/models/auth_oauth_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def _get_keys(self, kid):
def _map_token_values(self, res):
if self.token_map:
for pair in self.token_map.split(" "):
from_key, to_key = [k.strip() for k in pair.split(":", 1)]
from_key, to_key = (k.strip() for k in pair.split(":", 1))
if to_key not in res:
res[to_key] = res.get(from_key, "")
return res
Expand Down
2 changes: 1 addition & 1 deletion auth_oidc/models/res_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def auth_oauth(self, provider, params):
oauth_provider, params
)
else:
return super(ResUsers, self).auth_oauth(provider, params)
return super().auth_oauth(provider, params)
if not access_token:
_logger.error("No access_token in response.")
raise AccessDenied()
Expand Down

0 comments on commit beb550b

Please sign in to comment.