@@ -25,14 +25,14 @@ class KeyJar(object):
25
25
""" A keyjar contains a number of KeyBundles sorted by owner/issuer """
26
26
27
27
def __init__ (
28
- self ,
29
- ca_certs = None ,
30
- verify_ssl = True ,
31
- keybundle_cls = KeyBundle ,
32
- remove_after = 3600 ,
33
- httpc = None ,
34
- httpc_params = None ,
35
- storage = None ,
28
+ self ,
29
+ ca_certs = None ,
30
+ verify_ssl = True ,
31
+ keybundle_cls = KeyBundle ,
32
+ remove_after = 3600 ,
33
+ httpc = None ,
34
+ httpc_params = None ,
35
+ storage = None ,
36
36
):
37
37
"""
38
38
KeyJar init function
@@ -386,7 +386,7 @@ def export_jwks(self, private=False, issuer_id="", usage=None):
386
386
k .serialize (private )
387
387
for k in kb .keys ()
388
388
if k .inactive_since == 0
389
- and (usage is None or (hasattr (k , "use" ) and k .use == usage ))
389
+ and (usage is None or (hasattr (k , "use" ) and k .use == usage ))
390
390
]
391
391
)
392
392
return {"keys" : keys }
@@ -472,14 +472,14 @@ def remove_outdated(self, when=0):
472
472
473
473
@deprecated_alias (issuer = "issuer_id" , owner = "issuer_id" )
474
474
def _add_key (
475
- self ,
476
- keys ,
477
- issuer_id ,
478
- use ,
479
- key_type = "" ,
480
- kid = "" ,
481
- no_kid_issuer = None ,
482
- allow_missing_kid = False ,
475
+ self ,
476
+ keys ,
477
+ issuer_id ,
478
+ use ,
479
+ key_type = "" ,
480
+ kid = "" ,
481
+ no_kid_issuer = None ,
482
+ allow_missing_kid = False ,
483
483
):
484
484
485
485
_issuer = self ._get_issuer (issuer_id )
@@ -705,9 +705,7 @@ def rotate_keys(self, key_conf, kid_template="", issuer_id=""):
705
705
# =============================================================================
706
706
707
707
708
- def build_keyjar (
709
- key_conf , kid_template = "" , keyjar = None , issuer_id = "" , storage = None
710
- ):
708
+ def build_keyjar (key_conf , kid_template = "" , keyjar = None , issuer_id = "" , storage = None ):
711
709
"""
712
710
Builds a :py:class:`oidcmsg.key_jar.KeyJar` instance or adds keys to
713
711
an existing KeyJar based on a key specification.
@@ -764,12 +762,7 @@ def build_keyjar(
764
762
765
763
@deprecated_alias (issuer = "issuer_id" , owner = "issuer_id" )
766
764
def init_key_jar (
767
- public_path = "" ,
768
- private_path = "" ,
769
- key_defs = "" ,
770
- issuer_id = "" ,
771
- read_only = True ,
772
- storage = None ,
765
+ public_path = "" , private_path = "" , key_defs = "" , issuer_id = "" , read_only = True , storage = None ,
773
766
):
774
767
"""
775
768
A number of cases here:
0 commit comments