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

We no longer render a 400, but an error message for invalid auth_hash

Oliver Günther689d6c8964ab
diff --git a/spec/controllers/concerns/omniauth_login_spec.rb b/spec/controllers/concerns/omniauth_login_spec.rb
index 6ba7b6090de..36556f2a487 100644
--- a/spec/controllers/concerns/omniauth_login_spec.rb
+++ b/spec/controllers/concerns/omniauth_login_spec.rb
@@ -513,8 +513,9 @@ describe AccountController, type: :controller do
post :omniauth_login, params: { provider: :google }
end
- it 'should respond with a 400' do
- expect(response.code.to_i).to eql(400)
+ it 'should respond with an error' do
+ expect(flash[:error]).to include 'The authentication information returned from the identity provider was invalid.'
+ expect(response).to redirect_to signin_path
end
it 'should not sign in the user' do