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.
Metadata
Release files for bottle-rauth 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bottle-rauth-0.1.1.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bottle_rauth-0.1.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 8.9 kB
Release files / bottle-rauth-0.1.1.tar.gz
| Download URL | bottle-rauth-0.1.1.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
276c17c7eb7b1971128959094de631262c645082fdb9f5e0dda28e829040103b
|
|
BLAKE2b-256 checksum How to use checksums |
ca23d973022d7182d9da001fef8679a318e8001cd82b893d566b7919f566b985
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / bottle_rauth-0.1.1-py2.py3-none-any.whl
| Download URL | bottle_rauth-0.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
b7356b6e924bd7ea4c69d31dc714077c2a45b61572a427ebb7a51693586e8aef
|
|
BLAKE2b-256 checksum How to use checksums |
638a5cc86835d9f4bc3efddefafad8f83a72abac063975b8d037386a7142fdf7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |