appwrite/src/Appwrite/Auth
Torsten Dittmann d9c606a1c2 fix(oauth): update Yahoo OAuth scopes from deprecated Social Directory API to OIDC
The Yahoo OAuth provider was using deprecated Social Directory API scopes
('sdct-r' and 'sdpp-w') which are no longer valid and causing authentication
failures with the error: invalid_scope

Changes:
- Replace deprecated scopes 'sdct-r' (Social Directory Contacts Read) and
  'sdpp-w' (Social Directory Profile Write) with standard OIDC scopes
- Add 'openid' scope for OpenID Connect authentication
- Add 'profile' scope for basic profile information
- Add 'email' scope for email address access

These new scopes align with Yahoo's OpenID Connect implementation and are
listed in their discovery document at:
https://api.login.yahoo.com/.well-known/openid-configuration

The Yahoo adapter already uses the OIDC userinfo endpoint
(https://api.login.yahoo.com/openid/v1/userinfo), so these scopes are the
correct choice for authentication.

Custom scopes passed via the API are still supported and will be merged
with these defaults via the base OAuth2 class constructor.

Fixes: Yahoo OAuth authentication returning 'invalid_scope' error
2026-04-01 13:15:22 +04:00
..
MFA More refactor and fixes 2025-11-04 06:08:35 +00:00
OAuth2 fix(oauth): update Yahoo OAuth scopes from deprecated Social Directory API to OIDC 2026-04-01 13:15:22 +04:00
Validator More refactor and fixes 2025-11-04 06:08:35 +00:00
Key.php Finalize unit key tests 2025-12-29 11:21:49 +01:00
OAuth2.php fix: request issues and permissions 2025-04-08 08:51:04 +00:00
Phrase.php PR review changes 2024-02-01 14:13:30 +00:00