Skip to content

Commit e3406e8

Browse files
committed
Can't fully sign out from Redmine when using Keycloak provider onozaty#87
1 parent 73d44ce commit e3406e8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/redmine_oauth/patches/account_controller_patch.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ def logout
5252
when 'Keycloak'
5353
logout_user
5454
tenant_id = RedmineOauth.tenant_id
55-
redirect_to "#{site}/realms/#{tenant_id}/protocol/openid-connect/logout?redirect_uri=#{url}"
55+
id = RedmineOauth.client_id
56+
redirect_to "#{site}/realms/#{tenant_id}/protocol/openid-connect/logout? \
57+
id_token_hint=#{id}&post_logout_redirect_uri=#{url}"
5658
when 'Okta'
5759
logout_user
5860
id = RedmineOauth.client_id

0 commit comments

Comments
 (0)