user-pool-identity-provider-githubdeprecated

A CDK construct that adds GitHub as an identity provider to a Cognito user pool

Usage no npm install needed!

<script type="module">
  import userPoolIdentityProviderGithub from 'https://cdn.skypack.dev/user-pool-identity-provider-github';
</script>

README

UserPoolIdentityProviderGithub CDK construct

This library bundles the GitHub OpenID Connect Wrapper for Cognito as a CDK construct, instead of the original SAM implementation.

Usage

import { UserPool } from 'aws-cdk/aws-cognito';
import { UserPoolIdentityProviderGithub } from 'user-pool-identity-provider-github';

const userPool = new UserPool(stack, 'UserPool');
new UserPoolIdentityProviderGithub(this, 'UserPoolIdentityProviderGithub', {
  userPool,
  clientId: 'myClientId',
  clientSeret: 'myClientSecret',
  cognitoHostedUiDomain: 'https://auth.domain.com',
});

Documentation

See API.

Contributing

Feedback and pull requests are more than welcome 🤗

This project uses the projen project generator. Learn how to use it for CDK constructs here.

Note that the github-cognito-openid-wrapper code is vendored here. To benefit from newer versions, run the following command:

./scripts/bump-github-cognito-openid-wrapper.sh