Skip to content

Commit

Permalink
Merge pull request #85 from IdentityPython/develop
Browse files Browse the repository at this point in the history
Support for attributes that may appear in calls to the load method.
  • Loading branch information
rohe committed May 16, 2021
2 parents 5b36ff0 + c16e464 commit 72d6698
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -22,7 +22,7 @@ exclude_lines = [

[tool.poetry]
name = "cryptojwt"
version = "1.5.1"
version = "1.5.2"
description = "Python implementation of JWT, JWE, JWS and JWK"
authors = ["Roland Hedberg <roland@catalogix.se>"]
license = "Apache-2.0"
Expand Down
7 changes: 6 additions & 1 deletion src/cryptojwt/key_jar.py
Expand Up @@ -688,7 +688,12 @@ def dumps(self, exclude_issuers: Optional[List[str]] = None):
_dict = self.dump(exclude_issuers=exclude_issuers)
return json.dumps(_dict)

def load(self, info):
def load(
self,
info: dict,
init_args: Optional[dict] = None,
load_args: Optional[dict] = None,
):
"""
:param info: A dictionary with the information
Expand Down

0 comments on commit 72d6698

Please sign in to comment.