Skip to content

Commit 3e424a9

Browse files
authored
Fix auth state AuthnInstant (simplesamlphp#2478)
* Fix persistence for AuthnInstant data The time of authentication is handled in the field 'AuthnInstant' and should be persisted in the state in case it is needed.
1 parent 013a6d6 commit 3e424a9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/SimpleSAML/Auth/State.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public static function getPersistentAuthData(array $state): array
129129
'Attributes',
130130
'Expire',
131131
'LogoutState',
132-
'AuthInstant',
132+
'AuthnInstant',
133133
'RememberMe',
134134
'saml:sp:NameID',
135135
];

tests/src/SimpleSAML/Auth/StateTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function testGetPersistentAuthData(): void
2727
'Attributes' => [],
2828
'Expire' => 1234,
2929
'LogoutState' => 'logoutState',
30-
'AuthInstant' => 123456,
30+
'AuthnInstant' => 123456,
3131
'RememberMe' => true,
3232
'saml:sp:NameID' => 'nameID',
3333
];

0 commit comments

Comments
 (0)