Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Call thru to app in mock request_phase. Closes #152

  • Loading branch information...
commit 61e64c3efa165f3952289884fe41d5c3de6bf90a 1 parent 1343dd7
Michael Bleigh authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  oa-core/lib/omniauth/strategy.rb
View
2  oa-core/lib/omniauth/strategy.rb
@@ -44,6 +44,8 @@ def call!(env)
def mock_call!(env)
if current_path == request_path
+ status, headers, body = *call_app!
+ @response = Rack::Response.new(body, status, headers)
redirect callback_path
elsif current_path == callback_path
@env['omniauth.auth'] = OmniAuth.mock_auth_for(name.to_sym)
Please sign in to comment.
Something went wrong with that request. Please try again.