Giter Site home page Giter Site logo

poad / github-cognito-oidc-proxy Goto Github PK

View Code? Open in Web Editor NEW
0.0 4.0 0.0 9.85 MB

Home Page: https://d1czax7fq488gs.cloudfront.net/

License: MIT License

JavaScript 8.08% TypeScript 76.44% CSS 13.17% Shell 2.31%
api-gateway apigateway aws aws-cognito awscognito github github-oauth2 openid-connect openid-provider openidconnect

github-cognito-oidc-proxy's Introduction

GitHub OAuth 2.0 OpenID Connect Proxy for AWS Cognito

Build and Test Deploy

Connect to AWS Cognito using API Gateway and Lambda Function as a proxy for GitHub OAuth applications and as an Identity Provider via OpenID Connect.

How to use?

requirement

  • Node.js 18+
  • AWS CDK
  • pnpm 8.7.4+

Deploy AWS Resources

cd package
pnpm install
cdk deploy

context parameter

key description require
env The CloudFormation Sack to be built and the prefix name to be set for the AWS resource. No

Configure the AWS Cognito user pool

Now that API Gateway v1 (Rest API) is built, set the GitHub OAuth application and API Gateway endpoint to "Federated identity provider sign-in" in the Cognito user pool.

https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-oidc-idp.html

| Name | Description of the value to be set | | Client ID | A client ID of Your GitHub OAuth 2.0 application. | | Client secret | A client secret of Your GitHub OAuth 2.0 application. | | Authorized scopes | openid read:user user:email | | Attribute request method | GET | | Setup method | Auto fill through issuer URL | | Issuer URL | The endpoint URL for the default stage of your API Gateway. |

Issuer URL

The stage name of the deployed API Gateway is default.

The value to be set for the Issue URL is as follows:

https://~{API ID}.execute-api.{AWS Region}~.amazonaws.com/default

Attributes Mapping

github-cognito-oidc-proxy's People

Contributors

dependabot[bot] avatar poad avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.