valhallasw added a comment. > Yes. I'm not entirely sure about cookies, but from the logs it seems every > Api calls are OAuth-signed. @valhallasw you can explain this :)
Well, I don't know the specific oauth implementation, but we do handle cookies as one would expect in a browser. There's a requests.session shared between all requests; it uses a cookie jar (programmatically accessible via pywikibot.comms.http.session.cookies) which in the default configuration is backed by the file pywikibot.comms.http.session.cookies.filename. It might be interesting to dump the contents of the cookie (to check if the username is as expected), or to clear it using pywikibot.comms.http.session.cookies.clear(), but I'm not sure how much introspection you can do. TASK DETAIL https://phabricator.wikimedia.org/T125779 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: valhallasw Cc: Tgr, Mpaa, csteipp, Matanya, valhallasw, Ricordisamoa, Aklapper, Yann, StudiesWorld, pywikibot-bugs-list, zhuyifei1999 _______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
