This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!
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.

Release History

Release History

This version
History Node

0.1.1

History Node

0.1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
bottle_rauth-0.1.1-py2.py3-none-any.whl (4.9 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Dec 22, 2014
bottle-rauth-0.1.1.tar.gz (4.0 kB) Copy SHA256 Checksum SHA256 Source Dec 22, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting