Fix upstream oidc_sid link

pull/11964/head
Oliver Günther 2 years ago
parent 616c1a5a2f
commit b7b931861b
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 2
      modules/openid_connect/lib/open_project/openid_connect/engine.rb
  2. 2
      modules/openid_connect/lib/open_project/openid_connect/hooks/hook.rb

@ -48,7 +48,7 @@ module OpenProject::OpenIDConnect
end
# Remember oidc session values when logging in user
h[:retain_from_session] = %w[omniauth.openid_sid]
h[:retain_from_session] = %w[omniauth.oidc_sid]
h[:backchannel_logout_callback] = ->(logout_token) do
::OpenProject::OpenIDConnect::SessionMapper.handle_logout(logout_token)

@ -34,7 +34,7 @@ module OpenProject::OpenIDConnect
# we want to map that to the internal session
def user_logged_in(context)
session = context[:session]
oidc_sid = session['omniauth.openid_sid']
oidc_sid = session['omniauth.oidc_sid']
return if oidc_sid.nil?
::OpenProject::OpenIDConnect::SessionMapper.handle_login(oidc_sid, session)

Loading…
Cancel
Save