File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -594,10 +594,16 @@ public function test_logout_redirect_contains_id_token_hint_if_existing()
594
594
{
595
595
config ()->set (['oidc.end_session_endpoint ' => 'https://example.com/logout ' ]);
596
596
597
- $ this ->runLogin ();
597
+ // Fix times so our token is predictable
598
+ $ claimOverrides = [
599
+ 'iat ' => time (),
600
+ 'exp ' => time () + 720 ,
601
+ 'auth_time ' => time ()
602
+ ];
603
+ $ this ->runLogin ($ claimOverrides );
598
604
599
605
$ resp = $ this ->asEditor ()->post ('/oidc/logout ' );
600
- $ query = 'id_token_hint= ' . urlencode (OidcJwtHelper::idToken ()) . '&post_logout_redirect_uri= ' . urlencode (url ('/ ' ));
606
+ $ query = 'id_token_hint= ' . urlencode (OidcJwtHelper::idToken ($ claimOverrides )) . '&post_logout_redirect_uri= ' . urlencode (url ('/ ' ));
601
607
$ resp ->assertRedirect ('https://example.com/logout? ' . $ query );
602
608
}
603
609
Original file line number Diff line number Diff line change 1
- v23.09 -dev
1
+ v24.03 -dev
You can’t perform that action at this time.
0 commit comments