Skip to main content

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>`_.

Project details


Download files

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

Source Distribution

kinto-github-token-0.1.1.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file kinto-github-token-0.1.1.tar.gz.

File metadata

File hashes

Hashes for kinto-github-token-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9cfaed517fa910fc98051e49715ec837b26c42e92eb0140b4a4a2123b73395cf
MD5 0d61639e7345c2dee97dbd35d41b3d69
BLAKE2b-256 41cea42d8c066fac72ec8df72050a4996dfa92224bff85beb02030841ea35aee

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page