Skip to content

Commit a11c2e9

Browse files
m0arktvdijen
authored andcommitted
Fix auth state AuthnInstant (#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 f1b45ab commit a11c2e9

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

docs/simplesamlphp-changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ See the [upgrade notes](https://simplesamlphp.org/docs/stable/simplesamlphp-upgr
99

1010
Released TBD
1111

12+
* Fix auth state AuthnInstant (#2478)
1213

1314
## Version 2.3.8
1415

src/SimpleSAML/Auth/State.php

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

tests/src/SimpleSAML/Auth/StateTest.php

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

0 commit comments

Comments
 (0)