UNKNOWN
Project description
Bottle-RAuth – Short description.
Docs are available at https://bottle-rauth.readthedocs.org/. Pull requests with documentation enhancements and/or fixes are awesome and most welcome.
Requirements
python >= 2.6
Installation
Bottle-RAuth should be installed using pip:
pip install bottle-rauth
Usage
import bottle from bottle_rauth import RAuthPlugin app = bottle.Bottle() app.install(RAuthPlugin(github={ 'type': 'oauth2', 'client_id': 'e3e297bb9f506cbea557', 'client_secret': 'd113380beb8f1ed8a77b688e2b81b76c9be00d09', 'authorize_url': 'https://github.com/login/oauth/authorize', 'access_token_url': 'https://github.com/login/oauth/access_token', 'base_url': 'https://api.github.com/', })) @app.route('/') def index(): return '<a href="/github">Login with github</a>' @app.route('/github', provider='github') def github(rauth): info = rauth.get('user').json() info['token'] = rauth.access_token return info if __name__ == '__main__': app.run(port=5000)
Bug tracker
If you have any suggestions, bug reports or annoyances please report them to the issue tracker at https://github.com/klen/bottle-rauth/issues
Contributing
Development of Bottle-RAuth happens at: https://github.com/klen/bottle-rauth
Contributors
klen (Kirill Klenov)
License
Licensed under a BSD license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bottle-rauth-0.1.0.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file bottle-rauth-0.1.0.tar.gz
.
File metadata
- Download URL: bottle-rauth-0.1.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e07218e9dcaadef8bdbb8aed8f2b44ff24cadd11af6dd293b75a93fa1d6f00f |
|
MD5 | 0d5f37942ab21449e4a86ac7e57dc9cd |
|
BLAKE2b-256 | 4aa4f81527ab8fcaddacc77f767fcec9e42da5ba50767b2456f0a312fd2e82b1 |
File details
Details for the file bottle_rauth-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: bottle_rauth-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d920ee8ed0f1ebe2992740dbcd9bc260b0a142b7a9e132192299544bdfba2ff |
|
MD5 | 8f610188be1df77e6e86f035d82f6b00 |
|
BLAKE2b-256 | 4e82e33fe0dd368b6dbb319372683d5eb8dce162e4b3ae85953187c8521052b3 |