Skip to content

Commit

Permalink
feat: support kwargs in parse_jwt_token()
Browse files Browse the repository at this point in the history
  • Loading branch information
hopomi authored Jul 25, 2023
1 parent 5457853 commit 51cd7bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/casdoor/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def refresh_oauth_token(self, refresh_token: str, scope: str = "") -> str:

return access_token

def parse_jwt_token(self, token: str) -> dict:
def parse_jwt_token(self, token: str, **kwargs) -> dict:
"""
Converts the returned access_token to real data using
jwt (JSON Web Token) algorithms.
Expand All @@ -241,6 +241,7 @@ def parse_jwt_token(self, token: str) -> dict:
certificate.public_key(),
algorithms=self.algorithms,
audience=self.client_id,
**kwargs
)
return return_json

Expand Down

0 comments on commit 51cd7bd

Please sign in to comment.