Skip to main content

Django integrated Steam OpenID auth library

Project description


make steam openid authorization easily


  • requests
  • Django >= 1.7


Python >= 3

pip install django-steamauth

Python 2.x

pip install django-steamauth==1.1.1


You should set ABSOLUTE_URL in for redirection after login. default is localhost


# or

You can retrive user id with get_uid method when a login is successful.

from django.shortcuts import redirect
from steamauth import auth, get_uid

# GET /login
def login(request):
    # if your service does not support ssl, set use_ssl parameters value to False
    # return auth('/callback', use_ssl=False)
    return auth('/callback')

# GET /process
def login_callback(request):
    steam_uid = get_uid(request.GET)
    if steam_uid is None:
        # login failed
        return redirect('/login_failed')
        # login success
        # do something with variable `steam_uid`
        return redirect('/')



  • Dropping Python 2 Support
  • Remove deprecated interfaces: RedirectToSteamSignIn, GetSteamID64
  • Change the default value of ABSOLUTE_URL from localhost to localhost:8000
  • Fix an issue use_ssl parameter of auth didn't work (#6)
  • Set default value of use_ssl to True

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

django_steamauth- (3.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page