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
- Host: GitHub
- URL: https://github.com/lesnitsky/cognito-github-oidc
- Owner: lesnitsky
- License: mit
- Created: 2020-11-17T14:46:54.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-23T16:27:37.000Z (almost 5 years ago)
- Last Synced: 2025-04-22T14:11:37.352Z (6 months ago)
- Topics: cognito, github, serverless
- Language: TypeScript
- Homepage:
- Size: 46.9 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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