0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 13:08:40 +08:00
discourse/plugins/discourse-oauth2-basic/spec
Mark VanLandingham 550b717279
FIX: Ensure email_verified is properly checked for true values in OAuth2 Basic (#42319)
## Summary

Correctly treat only Boolean true or the string "true"
(case-insensitively) as an email-verified claim in the OAuth2 Basic
authenticator. Previously any truthy non-boolean value (e.g., "pending",
0, arrays) was accepted as verified, which allowed external provider
identities with non-verified email states to auto-link to existing
Discourse accounts. The fix applies a strict whitelist matching the
pattern used by the sibling OpenID Connect authenticator.

## Source

- Patch Triage: https://patch.discourse.org/patch-triage/1505
2026-08-04 13:14:48 -05:00
..
integration FIX: Ensure email_verified is properly checked for true values in OAuth2 Basic (#42319) 2026-08-04 13:14:48 -05:00
system DEV: Update rubocop (#38721) 2026-03-20 00:39:52 +01:00
plugin_spec.rb FIX: Ensure email_verified is properly checked for true values in OAuth2 Basic (#42319) 2026-08-04 13:14:48 -05:00