Django library for Exchange API stack authentication?

I am writing a webapp that makes heavy use of the StackExchange API. I am currently using OpenID authentication, but assuming that only the people who will use the site are SE members, I was wondering if there is a library for Django (or Python in general) that can handle the login process for me .

I specifically think of something that makes slots in a process, such as the django_openid_auth project.

+4
source share
3 answers

Take a look at django-allauth . Supported Authentication Providers:

  • Facebook (both OAuth2 and JS SDK)
  • Github
  • Google (OAuth2)
  • LinkedIn
  • Openid
  • A person
  • SoundCloud (OAuth2)
  • Stack Exchange (OAuth2)
  • Twitter
+4
source

You can use django-allauth for the registration / login process as it supports Stack Exchange OAuth2.

Since your application makes heavy use of the StackExchange API, you should consider using Py-StackExchange with django-allauth . Please see the FAQ , and API support for StackExchange.

+2
source

You have Py-StackExchange, perfect for use with Python. Check out the code on GitHub or its page on StackApps .


Added after comment by Oli

There are good work projects for managing login / registration. You can read a good overview of the 4 most common libraries in hackerluddite. Django-social-auth and django-allauth are most likely the most comprehensive, stable and used.

0
source

Source: https://habr.com/ru/post/1398070/


All Articles