discourse/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
..
auth_provider.rb DEV: Add capability to pass an icon setting into auth provider registration (#34584) 2025-08-28 09:14:36 -05:00
authenticator.rb FEATURE: add link to "associated accounts" providers (#33275) 2025-06-20 10:22:29 +02:00
current_user_provider.rb DEV: Allow impersonation without session swapping (#34213) 2025-08-21 14:18:15 +08:00
default_current_user_provider.rb DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
discord_authenticator.rb FEATURE: add link to "associated accounts" providers (#33275) 2025-06-20 10:22:29 +02:00
discourse_id_authenticator.rb FEATURE: pass email to external auth on signup (#33559) 2025-07-15 16:17:01 +02:00
facebook_authenticator.rb FEATURE: add link to "associated accounts" providers (#33275) 2025-06-20 10:22:29 +02:00
github_authenticator.rb FEATURE: add link to "associated accounts" providers (#33275) 2025-06-20 10:22:29 +02:00
google_oauth2_authenticator.rb FEATURE: add link to "associated accounts" providers (#33275) 2025-06-20 10:22:29 +02:00
linkedin_oidc_authenticator.rb FEATURE: add link to "associated accounts" providers (#33275) 2025-06-20 10:22:29 +02:00
managed_authenticator.rb FEATURE: managed auth can override avatars (#34123) 2025-09-02 12:49:43 -04:00
oauth_faraday_formatter.rb DEV: Include a basic oauth faraday formatter in core for usage in managed authenticators (#28758) 2024-09-05 22:29:29 +08:00
result.rb DEV: Add code comments around oauth user-api-key/new handling (#31774) 2025-03-12 14:01:20 -04:00
twitter_authenticator.rb FIX: Twitter health check broken on Faraday update (#35407) 2025-10-15 15:27:36 +08:00