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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Match constant names
Oliver Günther64a94a456701
diff --git a/app/helpers/omniauth_helper.rb b/app/helpers/omniauth_helper.rbindex 57d804991a5..9045ebd4364 100644--- a/app/helpers/omniauth_helper.rb+++ b/app/helpers/omniauth_helper.rb@@ -32,7 +32,7 @@ module OmniauthHelperenddef direct_login_provider_url(params = {})- omniauth_start_url(direct_login_provider, params)+ omni_auth_start_url(direct_login_provider, params)end##diff --git a/app/views/hooks/login/_auth_provider.html.erb b/app/views/hooks/login/_auth_provider.html.erbindex 8a93ce74af9..90c2f7f664b 100644--- a/app/views/hooks/login/_auth_provider.html.erb+++ b/app/views/hooks/login/_auth_provider.html.erb@@ -35,7 +35,7 @@ See COPYRIGHT and LICENSE files for more details.opts[:origin] = params['back_url']end%>- <a href="<%= omniauth_start_path(:developer, opts) %>" class="auth-provider auth-provider-developer button">+ <a href="<%= omni_auth_start_path(:developer, opts) %>" class="auth-provider auth-provider-developer button"><span class="auth-provider-name">Omniauth Developer</span></a><% end %>diff --git a/config/routes.rb b/config/routes.rbindex ad69b10fc0b..4818683c2c9 100644--- a/config/routes.rb+++ b/config/routes.rb@@ -64,8 +64,8 @@ Rails.application.routes.draw do# Add catch method for Rack OmniAuth to allow route helpers# Note: This renders a 404 in rails but is caught by omniauth in Rack beforeget "/auth/failure", to: "account#failure"- get "/auth/:provider", to: proc { [404, {}, [""]] }, as: "omniauth_start"- match "/auth/:provider/callback", to: "omni_auth_login#callback", as: "omniauth_callback", via: %i[get post]+ get "/auth/:provider", to: proc { [404, {}, [""]] }, as: "omni_auth_start"+ match "/auth/:provider/callback", to: "omni_auth_login#callback", as: "omni_auth_callback", via: %i[get post]# In case assets are actually delivered by a node server (e.g. in test env)# forward requests to the proxydiff --git a/modules/auth_plugins/app/views/hooks/login/_providers.html.erb b/modules/auth_plugins/app/views/hooks/login/_providers.html.erbindex bed76aebac4..c3e34bf4f85 100644--- a/modules/auth_plugins/app/views/hooks/login/_providers.html.erb+++ b/modules/auth_plugins/app/views/hooks/login/_providers.html.erb@@ -36,7 +36,7 @@ See COPYRIGHT and LICENSE files for more details.end%><a- href="<%= omniauth_start_path(pro[:name], opts) %>"+ href="<%= omni_auth_start_path(pro[:name], opts) %>"class="auth-provider auth-provider-<%= pro[:name] %> <%= pro[:icon] ? 'auth-provider--imaged' : '' %> button"><span class="auth-provider-name"><%= pro[:display_name] || pro[:name] %></span></a>diff --git a/modules/auth_saml/lib/open_project/auth_saml/engine.rb b/modules/auth_saml/lib/open_project/auth_saml/engine.rbindex 4696da7892d..730510ea996 100644--- a/modules/auth_saml/lib/open_project/auth_saml/engine.rb+++ b/modules/auth_saml/lib/open_project/auth_saml/engine.rb@@ -73,7 +73,7 @@ module OpenProject# Set the uid and index for the logout in this session againsession.merge! prev_session.slice(*h[:retain_from_session])- redirect_to omniauth_start_path(h[:name]) + "/spslo"+ redirect_to omni_auth_start_path(h[:name]) + "/spslo"endh.symbolize_keysdiff --git a/modules/openid_connect/lib/open_project/openid_connect/engine.rb b/modules/openid_connect/lib/open_project/openid_connect/engine.rbindex 68bdfe4174b..12a2cb99bfb 100644--- a/modules/openid_connect/lib/open_project/openid_connect/engine.rb+++ b/modules/openid_connect/lib/open_project/openid_connect/engine.rb@@ -45,7 +45,7 @@ module OpenProject::OpenIDConnecth[:single_sign_out_callback] = Proc.new donext unless h[:end_session_endpoint]- redirect_to "#{omniauth_start_path(h[:name])}/logout"+ redirect_to "#{omni_auth_start_path(h[:name])}/logout"end# Remember oidc session values when logging in user