Commit d6dbc83
committed
Fix OmniAuth 2.x CSRF check in test mode stubs
OmniAuth 2.1.4 still runs request_validation_phase inside
mock_request_call even when test_mode is true. With
omniauth-rails_csrf_protection installed this raises
InvalidAuthenticityToken on the mocked POST, breaking
feature specs that drive the SSO button flow.
Disable request_validation_phase while stubs are active and
restore the original value in reset_oidc_stubs.1 parent 7151fe5 commit d6dbc83
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
32 | 38 | | |
33 | 39 | | |
34 | 40 | | |
| |||
45 | 51 | | |
46 | 52 | | |
47 | 53 | | |
| 54 | + | |
| 55 | + | |
48 | 56 | | |
49 | 57 | | |
50 | 58 | | |
51 | 59 | | |
52 | 60 | | |
53 | 61 | | |
54 | 62 | | |
| 63 | + | |
55 | 64 | | |
56 | 65 | | |
57 | 66 | | |
| |||
0 commit comments