https://github.com/russellluo/toauth
A simple authentication system for Tornado.
https://github.com/russellluo/toauth
Last synced: over 1 year ago
JSON representation
A simple authentication system for Tornado.
- Host: GitHub
- URL: https://github.com/russellluo/toauth
- Owner: RussellLuo
- Created: 2014-07-08T02:26:05.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-07-09T02:17:30.000Z (about 12 years ago)
- Last Synced: 2025-02-16T04:17:12.508Z (over 1 year ago)
- Language: Python
- Size: 141 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
toauth
======
A simple authentication system for Tornado.
1. Run the demo
---------------
1) run server:
$ cd toauth
$ export PYTHONPATH=.
$ python demo/auth.py
2) access in browser:
http://127.0.0.1:8888/
2. Customization
----------------
You can customize the authentication system by editing `settings.py`.
Open `settings.py` to see the default settings:
# user orm class
USER = User
# dict-like session engine
SESSION = Session
# session key of user
SESSION_KEY = 'auth_user_id'
# cookie key of session
COOKIE_KEY = 'auth_session_id'