Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leplatrem/kinto-oidc-demo
Kinto + OpenID Connect demo
https://github.com/leplatrem/kinto-oidc-demo
Last synced: 20 days ago
JSON representation
Kinto + OpenID Connect demo
- Host: GitHub
- URL: https://github.com/leplatrem/kinto-oidc-demo
- Owner: leplatrem
- Created: 2018-02-05T18:20:29.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-22T12:56:54.000Z (almost 6 years ago)
- Last Synced: 2024-10-11T00:36:53.035Z (about 1 month ago)
- Language: JavaScript
- Size: 19.5 KB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kinto + OpenID Connect
## Setup
* Following [this tutorial](https://developers.google.com/identity/protocols/OpenIDConnect) to setup a project in the Google API Console
* Authorized Javascript origins: `http://localhost:3000`
* Authorized redirect URIs: `http://localhost:8888/v1/openid/google/token?`## Configure & run Kinto
Install Kinto (if necessary) and initialize a new configuration:
```
$ pip install --user kinto$ kinto init --ini openid.ini
```Set the [OpenID settings](https://kinto.readthedocs.io/en/stable/configuration/settings.html#openid):
```ini
kinto.includes = kinto.plugins.default_bucket
kinto.plugins.openidmultiauth.policies = google
multiauth.policy.google.use = kinto.plugins.openid.OpenIDConnectPolicy
multiauth.policy.google.issuer_url = https://accounts.google.com
multiauth.policy.google.client_id = 248628588820-XXXXXXXXXXX.apps.googleusercontent.com
multiauth.policy.google.client_secret = UAXXXXXXXXXX
multiauth.policy.google.userid_field = email
```Start!
```
$ kinto start --ini openid.ini
```## Run demo
```
$ python3 -m http.server 3000
```Access http://localhost:3000