Skip to main content
# 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>`_.

Metadata

Release files for kinto-github-token 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kinto-github-token 0.1.1
File Size Uploaded Provenance Actions
kinto-github-token-0.1.1.tar.gz 3.0 kB Without provenance Details for kinto-github-token-0.1.1.tar.gz

Release files / kinto-github-token-0.1.1.tar.gz

Download URL kinto-github-token-0.1.1.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9cfaed517fa910fc98051e49715ec837b26c42e92eb0140b4a4a2123b73395cf
BLAKE2b-256 checksum
How to use checksums
41cea42d8c066fac72ec8df72050a4996dfa92224bff85beb02030841ea35aee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for kinto-github-token 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file No provenance

0.1.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page