Skip to content

Support for attributes that may appear in calls to the load method. #85

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
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 <[email protected]>"]
license = "Apache-2.0"
Expand Down
7 changes: 6 additions & 1 deletion src/cryptojwt/key_jar.py
Original file line number Diff line number Diff line change
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