From 17e60e1bd9fa96f4ec7979e61bb73c3a85a79cc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Mon, 23 Jan 2023 11:10:04 +0100 Subject: [PATCH] Better logging for omniauth with oidc --- Gemfile.lock | 4 ++-- Gemfile.modules | 2 +- config/initializers/omniauth.rb | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index ff9291e7c6..e765d465f7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -9,8 +9,8 @@ GIT GIT remote: https://github.com/opf/omniauth-openid-connect.git - revision: 27d9d4a05c80a9b29709ae8681696de11156e0e5 - ref: 27d9d4a05c80a9b29709ae8681696de11156e0e5 + revision: 0d2cd719e87021a14dd2b5cf8a6bf1831d4a497e + ref: 0d2cd71 specs: omniauth-openid-connect (0.4.0) addressable (~> 2.5) diff --git a/Gemfile.modules b/Gemfile.modules index 0508c01050..7c3d66ba52 100644 --- a/Gemfile.modules +++ b/Gemfile.modules @@ -14,7 +14,7 @@ gem 'omniauth-openid_connect-providers', gem 'omniauth-openid-connect', git: 'https://github.com/opf/omniauth-openid-connect.git', - ref: '27d9d4a05c80a9b29709ae8681696de11156e0e5' + ref: '0d2cd71' group :opf_plugins do # included so that engines can reference OpenProject::Version diff --git a/config/initializers/omniauth.rb b/config/initializers/omniauth.rb index d91cff0512..3ce979e609 100644 --- a/config/initializers/omniauth.rb +++ b/config/initializers/omniauth.rb @@ -26,6 +26,8 @@ # See COPYRIGHT and LICENSE files for more details. #++ +OmniAuth.config.logger = Rails.logger + Rails.application.config.middleware.use OmniAuth::Builder do unless Rails.env.production? provider :developer, fields: %i[first_name last_name email]