Skip to content

Commit 2aca1c4

Browse files
committed
Get unit tests to work with auth time
1 parent beb70f8 commit 2aca1c4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

apps/dot_ext/tests/test_authorization_token.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,7 @@ def test_validate_ial_jwt_success(
647647
'iss': 'test_iss',
648648
'jti': 'test_validate_ial_jwt_cache_success',
649649
'iat': datetime.datetime.now().timestamp(),
650+
'auth_time': datetime.datetime.now().timestamp() - 60,
650651
'identity_assurance_level': 2,
651652
'family_name': 'Doe',
652653
'given_name': 'John',
@@ -681,6 +682,7 @@ def test_validate_ial_jwt_cache_replay(
681682
'iss': 'test_iss',
682683
'jti': 'test_validate_ial_jwt_cache_replay',
683684
'iat': datetime.datetime.now().timestamp(),
685+
'auth_time': datetime.datetime.now().timestamp() - 60,
684686
'identity_assurance_level': 2,
685687
'family_name': 'Doe',
686688
'given_name': 'John',

0 commit comments

Comments
 (0)