Skip to content

Commit 5470b11

Browse files
authored
Sem-Ver: bugfix When asap is not required and no asap token has been provided return early in _process_asap_token.
Signed-off-by: David Black <dblack@atlassian.com>
1 parent 1f8a067 commit 5470b11

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • atlassian_jwt_auth/frameworks/common

atlassian_jwt_auth/frameworks/common/asap.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ def _process_asap_token(request, backend, settings):
1111
response"""
1212
token = backend.get_asap_token(request)
1313
error_response = None
14-
14+
if token is None and not settings.ASAP_REQUIRED and (
15+
settings.ASAP_REQUIRED is not None):
16+
return
1517
try:
1618
if token is None:
1719
raise NoTokenProvidedError

0 commit comments

Comments
 (0)