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, 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 alternatively
self.connection.user
The results are the same.
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
SwampDragon-auth-0.1.1.zip
(4.8 kB
view hashes)
SwampDragon-auth-0.1.1.tar.gz
(1.9 kB
view hashes)