Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Better logging for omniauth with oidc

Oliver Günther17e60e1bd9fa
diff --git a/Gemfile.lock b/Gemfile.lock
index ff9291e7c69..e765d465f7d 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 0508c01050f..7c3d66ba526 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 d91cff05121..3ce979e6095 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]