An open API service indexing awesome lists of open source software.

https://github.com/lesnitsky/cognito-github-oidc

GitHub OAuth openid shim for AWS Cognito
https://github.com/lesnitsky/cognito-github-oidc

cognito github serverless

Last synced: 3 months ago
JSON representation

GitHub OAuth openid shim for AWS Cognito

Awesome Lists containing this project

README

          

# Cognito Github OpenID

GitHub OAuth openid shim for AWS Cognito

## Getting Started

### Generate certificate

```
./scripts/certificate.sh
```

### Deploy the API

```
sls deploy
```

### Create Cognito user pool

- Create user pool
- Go to `Federation > Identity providers`
- Choose `OpenID Connect`
- Fill the form
- Provider name: `cognito-github-openid` (or any other)
- Client id: copy from github oauth application
- Client secert: copy from github oauth application
- Authorize scope: `openid read:user [...any other github scopes]`
- Issuer: ``
- Click `Show oidc endpoints`
- Authorization endpoint: `/:stage/authorize`
- Token endpoint: `/:stage/token`
- Userinfo endpoint: `/:stage/userinfo`
- Jwks uri: `/:stage/jwks`

## Contributors

- [Andrei Lesnitsky](https://github.com/lesnitsky)

## LICENSE

MIT