Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (testpypi.python.org).
Help us improve Python packaging - Donate today!

Github Authentication support for Kinto

Project Description
# kinto-github-token

Github Authentication support for Kinto

### Usage

```
# changes to kinto.ini

multiauth.policies = github
multiauth.policy.github.use = kinto_github_token.authentication.GithubAuthenticationPolicy
```

### Authentication Flow

#### Redirect users to request GitHub access
```
GET https://github.com/login/oauth/authorize
```

#### After Github redirects back to your site, obtain the `code` and issue a request to Kinto API to get the `access_token`
```
POST http://localhost:888/v1/github/token
```

#### Having the access_token, use it as authorization headers to request Kinto API, or pass it to kinto.js client
```
collection.sync({
headers: {
Authorization: 'github+bearer <your_token>'
}
})
```

### TODO
[ ] load github client_id & client_secret from kinto.ini

### Licence

### Authors

`kinto-github-token` was written by `Anh Trinh <anh.trinhtrung@gmail.com>`_.
Release History

Release History

This version
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
kinto-github-token-0.1.0.tar.gz (2.4 kB) Copy SHA256 Checksum SHA256 Source Apr 2, 2017

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