Skip to main content

Access signed in django users in routers

Project description

# Installation `pip install swampdragon-auth`

# Django settings.py file Add the following code to your settings file:

SWAMP_DRAGON_CONNECTION = (‘swampdragon_auth.socketconnection.HttpDataConnection’, ‘/data’)

## Important note about deployment

If you are running your SwampDragon instances on a subdomain, you need to set

SESSION_COOKIE_DOMAIN = .yourdomain.tld

or the authentication won’t be able to access the user.

To access a signed in user in your router:

self.connection.get_user()

or

self.connection.user

Project details


Download files

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

Files for SwampDragon-auth, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size SwampDragon-auth-0.1.3.tar.gz (2.1 kB) File type Source Python version None Upload date Hashes View
Filename, size SwampDragon-auth-0.1.3.zip (4.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page