File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
test/lib/omniauth/strategies Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -423,8 +423,11 @@ def redirect_uri
423
423
def encoded_post_logout_redirect_uri
424
424
return unless options . post_logout_redirect_uri
425
425
426
+ id_token_hint = @access_token . id_token if @access_token
427
+
426
428
URI . encode_www_form (
427
- post_logout_redirect_uri : options . post_logout_redirect_uri
429
+ post_logout_redirect_uri : options . post_logout_redirect_uri ,
430
+ id_token_hint : id_token_hint
428
431
)
429
432
end
430
433
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ def test_logout_phase_with_discovery
45
45
end
46
46
47
47
def test_logout_phase_with_discovery_and_post_logout_redirect_uri
48
- expected_redirect = 'https://example.com/logout?post_logout_redirect_uri=https%3A%2F%2Fmysite.com'
48
+ expected_redirect = 'https://example.com/logout?post_logout_redirect_uri=https%3A%2F%2Fmysite.com&id_token_hint '
49
49
strategy . options . client_options . host = 'example.com'
50
50
strategy . options . discovery = true
51
51
strategy . options . post_logout_redirect_uri = 'https://mysite.com'
You can’t perform that action at this time.
0 commit comments