Access signed in django users in routers
Project description
Swamp Dragon auth
=================
# Installation
```pip install swampdragon-auth```
# Django settings.py file
Add the following code to your settings file:
SOCKJS_CLASSES = (
('dragon_auth.socketconnection.HttpDataConnection', '/data'),
)
To access a signed in user in your router:
self.connection.get_user()
or alternatively
self.connection.user
The results are the same.
=================
# Installation
```pip install swampdragon-auth```
# Django settings.py file
Add the following code to your settings file:
SOCKJS_CLASSES = (
('dragon_auth.socketconnection.HttpDataConnection', '/data'),
)
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.0.zip
(4.5 kB
view hashes)
SwampDragon-auth-0.1.0.tar.gz
(1.8 kB
view hashes)