Skip to main content
# django-steam

Steam api and authentication for django

## Installation

```
pip install django_steam
```

## Configuration

First install the required apps and set the required settings :
```
INSTALLED_APPS = (
...
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django_openid_auth',
'django_steam_api',
'django_steam',
...
)


AUTHENTICATION_BACKENDS = (
...
'django_openid_auth.auth.OpenIDBackend',
...
)

LOGIN_URL = '/path/to/openid/login/'
OPENID_CREATE_USERS = True
STEAM_API_KEY = 'YOURSTEAMAPIKEY'

# recommended
OPENID_SSO_SERVER_URL = 'http://steamcommunity.com/openid'
SESSION_SERIALIZER = 'django.contrib.sessions.serializers.PickleSerializer'


# optional
OPENID_UPDATE_DETAILS_FROM_SREG = True
ALLOWED_EXTERNAL_OPENID_REDIRECT_DOMAINS = ['http://example.org']
OPENID_STRICT_USERNAMES = False
# see https://github.com/edx/django-openid-auth
# and https://github.com/voblivion/django-steam-api
```

Add openid urls to your configuration :
```
urlpatterns = patterns('',
...
(r'^openid/', include('django_openid_auth.urls')),
...
)
```


Then update database scheme :
```
./manage.py migrate
```

## Usage

Use any of django-steam-api models.

Give your users link to steam auth :
```
<a href="/openid/login">
<img src="https://steamcommunity-a.akamaihd.net/public/images/signinthroughsteam/sits_01.png" width="180" height="35" border="0">
</a>
```

Access steam's player profile of authenticated users :
```
if user.steam:
do_something_with(user.steam.player)
```

Metadata

Release files for django-steam 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-steam 0.1
File Size Uploaded
django-steam-0.1.tar.gz 15.5 kB Details

Release files / django-steam-0.1.tar.gz

Download URL django-steam-0.1.tar.gz
Size 15.5 kB
Tags Source
SHA-256 checksum
How to use checksums
82d91b16d865002a630b0a852dd919bc9600a33f9a46e501db0c2519e05ee7cc
BLAKE2b-256 checksum
How to use checksums
639f188032dad63527069f50ca5edcc4b579c0a5c39092321e2ce1f6825f1a60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page