Skip to content
This repository was archived by the owner on Jun 23, 2023. It is now read-only.

Commit b86b705

Browse files
committed
chore: code linting
1 parent 39a0f7e commit b86b705

31 files changed

+604
-511
lines changed

src/oidcop/authz/__init__.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ def usage_rules_for(self, client_id, token_type):
5757
return {}
5858

5959
def __call__(
60-
self, session_id: str, request: Union[dict, Message], resources: Optional[list] = None,
60+
self,
61+
session_id: str,
62+
request: Union[dict, Message],
63+
resources: Optional[list] = None,
6164
) -> Grant:
6265
session_info = self.server_get("endpoint_context").session_manager.get_session_info(
6366
session_id=session_id, grant=True
@@ -93,7 +96,10 @@ def __call__(
9396

9497
class Implicit(AuthzHandling):
9598
def __call__(
96-
self, session_id: str, request: Union[dict, Message], resources: Optional[list] = None,
99+
self,
100+
session_id: str,
101+
request: Union[dict, Message],
102+
resources: Optional[list] = None,
97103
) -> Grant:
98104
args = self.grant_config.copy()
99105
grant = self.server_get("endpoint_context").session_manager.get_grant(session_id=session_id)

src/oidcop/client_authn.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,7 @@ def verify(self, request, **kwargs):
141141

142142

143143
class BearerHeader(ClientSecretBasic):
144-
"""
145-
"""
144+
""""""
146145

147146
tag = "bearer_header"
148147

@@ -348,15 +347,17 @@ def verify_client(
348347
authorization_token = None
349348

350349
auth_info = {}
351-
_methods = getattr(endpoint, 'client_authn_method', [])
350+
_methods = getattr(endpoint, "client_authn_method", [])
352351

353352
for _method in _methods:
354353
if _method is None:
355354
continue
356355
if _method.is_usable(request, authorization_token):
357356
try:
358357
auth_info = _method.verify(
359-
request=request, authorization_token=authorization_token, endpoint=endpoint,
358+
request=request,
359+
authorization_token=authorization_token,
360+
endpoint=endpoint,
360361
)
361362
except Exception as err:
362363
logger.warning("Verifying auth using {} failed: {}".format(_method.tag, err))

0 commit comments

Comments
 (0)