https://github.com/reddit/django-underpants
tiny helpers for integrating django with underpants
https://github.com/reddit/django-underpants
Last synced: 10 months ago
JSON representation
tiny helpers for integrating django with underpants
- Host: GitHub
- URL: https://github.com/reddit/django-underpants
- Owner: reddit
- License: other
- Created: 2015-08-04T22:53:45.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2023-03-18T17:52:41.000Z (over 3 years ago)
- Last Synced: 2024-04-14T12:55:00.572Z (about 2 years ago)
- Language: Python
- Size: 97.7 KB
- Stars: 3
- Watchers: 5
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# django\_underpants
These are some stupid-simple helper classes to integrate [Django]'s
authentication systems with [Underpants] for intranet single-signon via Google
Apps OAuth.
Once installed, add the following to your `settings.py` to use the new classes.
```python
MIDDLEWARE_CLASSES += (
"django_underpants.UnderpantsRemoteUserMiddleware",
)
AUTHENTICATION_BACKENDS = (
"django_underpants.UnderpantsRemoteUserBackend",
)
```
[Django]: https://github.com/django/django
[Underpants]: https://github.com/kellegous/underpants/