Zache created this task.
Zache added projects: Pywikibot, PendingChangesBot.

TASK DESCRIPTION
  Currently, when users attempt to authenticate to Superset 
<https://superset.toolforge.org> using OAuth or BotPassword credentials, 
Pywikibot enters an HTTP redirect loop without clear error messaging. This 
creates a poor user experience and makes hard to understand why login fails.
  
  **Proposed Solution:**
  Add explicit error handling and user-friendly error messages in 
pywikibot.data.superset.SupersetQuery login() 
<https://doc.wikimedia.org/pywikibot/master/_modules/data/superset.html#SupersetQuery.login>
 to detect when OAuth or BotPassword authentication is being used and inform 
users that these methods are not supported for Superset authentication.
  
  **Example error message:**
  
    Error: Superset authentication does not support OAuth or BotPassword. 
    Please use standard username/password authentication in user-config.py:
    usernames["meta"]["meta"] = "WIKIMEDIA_USERNAME"
  
  **Code Review Requirements:**
  For the patch to pass Pywikibot code review, please ensure:
  
  1. Follow Gerrit guidelines:
    - Manual:Pywikibot/Gerrit - For_developers 
<https://www.mediawiki.org/wiki/Manual:Pywikibot/Gerrit#For_developers>
    - Gerrit: Commit message guidelines 
<https://www.mediawiki.org/wiki/Gerrit/Commit_message_guidelines>
    - See also: T407059 <https://phabricator.wikimedia.org/T407059> (Pywikibot 
contribution howto documentation)
  2. Code quality:
  3. Patch must follow the Pywikibot style guide
  4. No flake8 errors or warnings
    - Commit message must follow style guidelines
  5. Testing:
  6. Added error handling must include unit tests
  7. Tests should verify proper error detection and messaging for 
OAuth/BotPassword scenarios

TASK DETAIL
  https://phabricator.wikimedia.org/T408287

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to