1
0
Fork 0
mirror of https://github.com/omniauth/omniauth.git synced 2022-11-09 12:31:49 -05:00
Commit graph

13 commits

Author SHA1 Message Date
Bobby McDonald
43a396f181
Merge branch '2_0-indev' into fix-path-prefix-when-redirecting-on-failure 2020-12-10 10:10:02 -05:00
Josh Jordan
ee2ef211d5 Rescues from strategy calls by calling fail!, properly URL encodes message_key for FailureEndpoint handling
Do not rescue around mock_call!
2020-12-07 18:47:55 -05:00
Cyril Rohr
eb5047ad51 Make the FailureEndpoint respect the strategy's path_prefix.
Previously, it just fetched the global path_prefix.
2020-01-31 11:29:41 +00:00
Tom Milewski
ace4ba366a
Fix Rubocop; Min Ruby version 2.2; Update Travis platforms 2018-12-14 11:29:36 -05:00
Erik Michaels-Ober
43577d3c6d Always use raise to signal exceptions 2016-08-08 10:53:36 -07:00
Erik Michaels-Ober
d9683a8880 Fix RuboCop offenses 2014-01-16 05:22:36 +01:00
Tom Milewski
6a8292cb08 Type-cast ENV['RACK_ENV'] per master; Compartmentalize specs 2013-09-01 14:31:24 -04:00
Josh Jordan
56561ee5eb Make raise_out! configurable 2013-06-20 17:18:35 -04:00
slainer68
c0e7743b14 Use Rack::Utils escape instead of CGI as it's included in Rack and may fix the travis build :) 2012-04-11 01:06:05 +02:00
slainer68
a364cf4bea Adds strategy parameter with the strategy name in the failure end point redirect callback. 2012-04-10 20:42:02 +02:00
Michael Bleigh
bcd891aec4 Adds 'origin' param to default failure redirect. Closes #569 2012-03-20 21:47:03 -04:00
Michael Bleigh
d02f9d58f7 Improves error handling behavior. Closes #578.
* OmniAuth::FailureEndpoint will raise any encountered
  errors out if RACK_ENV is development.
* It will redirect compatibly with current OmniAuth if
  not in development.
* Now uses Rack::Response to include a content length
  in the failure response.
2012-03-05 23:11:35 -05:00
Michael Bleigh
5fbc41943d Extract default on_failure into class. References #578. 2012-03-05 20:27:08 -05:00