You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
before_callback_phase hook not invoked in mocked failure scenario #1043
In a non-mocked scenario, before_request_phase is always called, as failure can only happen after the callback_call method calls callback_phase. When testing though, if we mock an auth failure via something like this:
OmniAuth.config.mock_auth[:auth0]=:access_denied
The before_request_phase hook is not called, resulting in a different outcome in tests vs. reality.
The change here seems pretty straightforward, but I wanted to confirm that this was not done on purpose. Is there a specific reason this hook should not be run in the mocked failure case?
Activity
Run before_callback_phase for mocked failures