skip to navigation
skip to content

Not Logged In

SwampDragon-auth 0.1.3

Access signed in django users in routers

# 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
 
File Type Py Version Uploaded on Size
SwampDragon-auth-0.1.3.tar.gz (md5) Source 2015-02-08 2KB
SwampDragon-auth-0.1.3.zip (md5) Source 2015-02-08 4KB
  • Downloads (All Versions):
  • 39 downloads in the last day
  • 280 downloads in the last week
  • 940 downloads in the last month