Skip to content

Commit 6cf0d45

Browse files
committed
Added Kristos's Token Revocation.
1 parent 58852fb commit 6cf0d45

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/idpyoidc/message/oauth2/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,7 @@ class JSONWebToken(Message):
581581
'entitlements': OPTIONAL_LIST_OF_STRINGS
582582
}
583583

584+
584585
# RFC 7009
585586
class TokenRevocationRequest(Message):
586587
c_param = {

src/idpyoidc/server/oauth2/token_revocation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ def process_request(self, request=None, **kwargs):
7878
try:
7979
self.token_types_supported = _context.cdb[client_id]["token_revocation"][
8080
"token_types_supported"]
81-
except:
81+
except Exception:
8282
self.token_types_supported = self.token_revocation_kwargs.get("token_types_supported",
8383
self.token_types_supported)
8484

8585
try:
8686
self.policy = _context.cdb[client_id]["token_revocation"]["policy"]
87-
except:
87+
except Exception:
8888
self.policy = self.token_revocation_kwargs.get("policy", {
8989
"": {"callable": validate_token_revocation_policy}})
9090

0 commit comments

Comments
 (0)