discourse/spec/lib/auth
Ted Johansson ce1c48b1a9
FIX: Twitter health check broken on Faraday update (#35407)
Faraday [updated their authentication/authorization middleware in version 2](https://github.com/lostisland/faraday/pull/1306), which was a breaking change for the Twitter auth health check.

The relevant test was manually mocking and stubbing the individual Faraday objects, so the relevant code path wasn't exercised by our tests.

This commit:

- Updates the test to use `stub_request` instead. (This correctly catches
the deprecated method error.)
- Updates the health check to use the new middleware.
2025-10-15 15:27:36 +08:00
..
default_current_user_provider_spec.rb FIX: Don't update last_seen_at when impersonating a user (#34872) 2025-10-02 11:17:15 +08:00
discord_authenticator_spec.rb DEV: Fix username/name mapping for Discord auth (#31494) 2025-02-25 17:33:26 +11:00
discourse_id_authenticator_spec.rb DEV: Remove unnecessary rails_helper requires (#33812) 2025-07-24 13:50:04 +02:00
facebook_authenticator_spec.rb DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
github_authenticator_spec.rb DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
google_oauth2_authenticator_spec.rb DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
linkedin_oidc_authenticator_spec.rb FEATURE: Allow users to sign in using LinkedIn OpenID Connect (#26281) 2024-04-19 18:47:30 +08:00
managed_authenticator_spec.rb DEV: Fix linting and test for b1ea35bb30 (#34688) 2025-09-02 13:43:34 -04:00
result_spec.rb DEV: Apply syntax_tree formatting to spec/* 2023-01-09 11:49:28 +00:00
twitter_authenticator_spec.rb FIX: Twitter health check broken on Faraday update (#35407) 2025-10-15 15:27:36 +08:00