You can clone with
I'm relying on the /auth/:provider path hitting my app before it redirects, so I can store information from the query string in the session (as recommended by mbleigh in pull request #123: #123 (comment)).
When omniauth is in test mode, however, it simply redirects "/auth/:provider" directly to "/auth/:provider/callback" without hitting the app, so I'm not able to test my app's behavior.
I have a related problem, it looks that the OAuth2 strategy does not hit the application at all in the request phase: https://github.com/intridea/omniauth/blob/master/oa-oauth/lib/omniauth/strategies/oauth2.rb#L57
Is this by design or would you welcome a patch for calling the app before redirecting to the provider?
I would welcome the patch. That was an oversight in building the test mode.
Call thru to app in mock request_phase. Closed by 61e64c3
Call thru to app in mock request_phase. Closes #152