mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Handle SSO Provider Parse exception
Prevent unnecessary 500 errors from appearing in the logs and return a 422 response instead.
This commit is contained in:
@@ -1006,7 +1006,7 @@ RSpec.describe SessionController do
|
||||
it "it fails to log in if secret is wrong" do
|
||||
get "/session/sso_provider", params: Rack::Utils.parse_query(@sso.payload("secretForRandomSite"))
|
||||
|
||||
expect(response.status).to eq(500)
|
||||
expect(response.status).to eq(422)
|
||||
end
|
||||
|
||||
it "fails with a nice error message if secret is blank" do
|
||||
|
||||
Reference in New Issue
Block a user