The python-social-auth project welcomes contributions.  If you could work with them to add OAuth2 support for the MediaWiki backend, that would be great.

On Mar 3, 2026, at 2:03 PM, Jonathan Tweed via Wikitech-l <wikitech-l@lists.wikimedia.org> wrote:

On Mon, 2 Mar 2026 at 21:42, Roy Smith <roy@panix.com> wrote:

I'm using the python-social-auth library.  As far as I can tell, it only supports OAuth 1.

https://python-social-auth.readthedocs.io/en/latest/backends/mediawiki.html

That does look to be the case and I'm not sure that it implements
cookie support directly. It may be possible to use requests.Session
alongside this to implement the cookie support, as it uses
requests_oauthlib.OAuth1 to handle the authentication.

More generally we are open to helping improve community libraries,
either through code review or more active contribution.
_______________________________________________
Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org
To unsubscribe send an email to wikitech-l-leave@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/