Nash Bridges
9d4801fc9b
Block in Strategy.configure can return nil
2013-03-14 18:44:56 +02:00
Kenichi Kamiya
e3141b993d
Remove warnings "instance variable @{ivar} not initialized" in spec
2013-03-13 07:56:49 -07:00
Erik Michaels-Ober
213451064d
Rename spec_helper -> helper
2013-02-25 16:05:37 -08:00
Aitor García
41551da4bf
Refactor ssl check to mimic Rack::Request#ssl? behavior as stated in #663 . I've removed the query assigment since it looked redundant just after the gsub and added a few test for a custom full_host that were not provided before.
2013-02-13 19:12:50 +00:00
Erik Michaels-Ober
94772cfbfe
Convert to the new RSpec expectation syntax
2012-10-10 01:36:06 -07:00
Alexey Smolianinov
fba3c36db5
Fix mock_*_call methods to preserve the omniauth.params hash
2012-06-04 16:55:27 +04:00
Michael Bleigh
a682ba1f6d
Adds dynamic path evaluation options. Closes #585
2012-04-12 16:44:35 -05: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
Damian Janowski
62c62f12cb
In test mode, the underlying app shouldn't be called on request phase.
2012-03-07 18:12:41 -03: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
ce9b5b088f
Merge pull request #554 from toyokazu/master
...
A request to insert env['SCRIPT_NAME'] before on_failure new_path
2012-01-17 13:00:50 -08:00
Steve Agalloco
add40783a9
fix for failing strategy test
2012-01-11 09:58:29 -05:00
Toyokazu Akiyama
9022d66cea
insert env['SCRIPT_NAME'] before on_failure path
...
handle sub_uri (a.k.a. BaseURI) at on_failure
2011-12-13 14:54:59 +09:00
Mark Dodwell
c86627a27a
address jruby spec issue
2011-10-25 23:21:38 -07:00
Michael Bleigh
dfb77bfd89
Adds :form option for custom form endpoints.
2011-10-03 14:24:39 -05:00
Michael Bleigh
90875e4600
Revert "Adds callback DSL methods."
...
This reverts commit 0ca87084a2
.
2011-09-30 10:36:57 -05:00
Michael Bleigh
0ca87084a2
Adds callback DSL methods.
2011-09-30 10:15:27 -05:00
Michael Bleigh
4a8e1cc3e0
Evaluate DSL methods in the context of the strategy instance.
2011-09-28 13:06:03 -05:00
Michael Bleigh
af2226812a
Adds DSL methods for uid, info, credentials, and extra.
2011-09-28 12:41:06 -05:00
Michael Bleigh
adf79d5518
Make args inheritable.
2011-09-28 10:26:27 -05:00
Michael Bleigh
13aa9418c8
Adds :skip_info with lambda or true/false evaluation. Closes #292
2011-09-27 19:52:43 -05:00
Michael Bleigh
2b69439eee
Strategy is now 100% covered for specs.
2011-09-27 14:59:26 -05:00
Michael Bleigh
6afe5f4345
Adds #uid and #info methods, simplifies #callback_phase, adds some specs.
2011-09-27 13:18:08 -05:00
Michael Bleigh
e6816c5200
Refactor strategy initialization, implementing pretty big changes.
2011-09-26 22:44:52 -05:00
Michael Bleigh
ad873fda58
Adds .option method to Strategy for even more declarative configuration.
2011-09-26 12:11:41 -05:00
Michael Bleigh
53bc3f5741
Small but powerful change: Strategy options now inherit from a default, are Mashes, and can be declaratively configured.
2011-09-26 11:44:17 -05:00
Michael Bleigh
cc73281406
Clearing out everything to move towards the new 1.0 independent gems strategy.
2011-09-03 21:26:57 -03:00
Michael Bleigh
3dbfdff127
Merging master.
2011-09-03 15:08:07 -03:00