Xqt added a comment.

  Bot Password accounts get the following response:
  
  (NOTE) <!doctype html>
  <html lang=en>
  <title>Redirecting...</title>
  <h1>Redirecting...</h1>
  <p>You should be redirected automatically to the target URL: <a 
href="https://meta.wikimedia.org/w/rest.php/oauth2/authorize?response_type=code&amp;client_id=0c0ca9df92d6da2683a84dc2efc72640&amp;redirect_uri=https%3A%2F%2Fsuperset.wmcloud.org%2Foauth-authorized%2Fmediawiki&amp;scope=mwoauth-authonlyprivate&amp;state=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuZXh0IjpbIiJdfQ.jjSp1spaAXxfAeAWxU3yC9SJurBj1pFVI5fbv78gUPI";>https://meta.wikimedia.org/w/rest.php/oauth2/authorize?response_type=code&amp;client_id=0c0ca9df92d6da2683a84dc2efc72640&amp;redirect_uri=https%3A%2F%2Fsuperset.wmcloud.org%2Foauth-authorized%2Fmediawiki&amp;scope=mwoauth-authonlyprivate&amp;state=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuZXh0IjpbIiJdfQ.jjSp1spaAXxfAeAWxU3yC9SJurBj1pFVI5fbv78gUPI</a>.
 If not, click the link.
  
  looks like 
https://meta.wikimedia.org/w/rest.php/oauth2/authorize?response_type=code&client_id=…&redirect_uri=…&scope=mwoauth-authonlyprivate&state=…
  
  And there is another problem with login: If there is a different site from 
meta superset takes it and access may fail if the other site has a different 
user registerd. As an example U can take this test:
  
    def test_overriding_site(self):
        """Test overriding schema using site"""
        sql = 'SELECT page_id, page_title FROM page LIMIT 2;'
        superset = SupersetQuery(schema_name='enwiki_p', database_id=2)
        testsite = pywikibot.Site('wikipedia:fi')
        rows = superset.query(sql, site=testsite)
        self.assertLength(rows, 2)

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

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