4

I'm writing a webapp that heavily uses the StackExchange API. I'm currently using OpenID authentication but given the only people that will use the site will be SE members, I've been wondering if there's a library for Django (or Python, in general) that can handle the login process for me.

I'm specifically thinking of something that slots into the process like the django_openid_auth project does.

Oli
  • 235,628
  • 64
  • 220
  • 299

3 Answers3

4

Look at django-allauth. The supported authentication providers are:

  • Facebook (both OAuth2 and JS SDK)
  • Github
  • Google (OAuth2)
  • LinkedIn
  • OpenId
  • Persona
  • SoundCloud (OAuth2)
  • Stack Exchange (OAuth2)
  • Twitter
Aamir Rind
  • 38,793
  • 23
  • 126
  • 164
2

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

Since your app heavily uses StackExchange API, you should consider using Py-StackExchange along with django-allauth. Please have a look at FAQ and it's API support for StackExchange.

pankaj28843
  • 2,458
  • 17
  • 34
0

You have Py-StackExchange, perfect for using from Python. Check out the code at GitHub or its page at StackApps.


Added after Oli's comment

For managing login/registration there are some good working projects. You can read a good review of 4 of the most common libraries at hackerluddite. Django-social-auth and django-allauth are likely the most complete, stable and used.

Community
  • 1
  • 1
inigomedina
  • 1,791
  • 14
  • 21