Skip to content

Commit

Permalink
Merge pull request #128 from hyperleex/feat/leeway
Browse files Browse the repository at this point in the history
Add leeway param
  • Loading branch information
JonasKs authored Jan 18, 2021
2 parents 58d881a + a1b32ab commit 37f133d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions django_auth_adfs/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def validate_access_token(self, access_token):
audience=settings.AUDIENCE,
issuer=provider_config.issuer,
options=options,
leeway=settings.JWT_LEEWAY
)
except jwt.ExpiredSignatureError as error:
logger.info("Signature has expired: %s", error)
Expand Down
1 change: 1 addition & 0 deletions django_auth_adfs/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def __init__(self):
self.TENANT_ID = None # Required
self.TIMEOUT = 5
self.USERNAME_CLAIM = "winaccountname"
self.JWT_LEEWAY = 0

required_settings = [
"AUDIENCE",
Expand Down

0 comments on commit 37f133d

Please sign in to comment.