diff --git a/.env.sample b/.env.sample index 8720c5b78..3d4c9976c 100644 --- a/.env.sample +++ b/.env.sample @@ -20,6 +20,7 @@ NEXTAUTH_SECRET=abcdefghijlmnopqrstuvwxyz GITHUB_ID= GITHUB_SECRET= +GITHUB_OAUTH_ISSUER=https://github.com/login/oauth #If you are contributing to the project and using Github OAuth above, then feel free to not set the below variables. #On production this should be set to FCC's auth0 tenant. diff --git a/.gitignore b/.gitignore index 97dcbaab4..bbe53a884 100644 --- a/.gitignore +++ b/.gitignore @@ -43,6 +43,7 @@ build/Release node_modules/ jspm_packages/ + # TypeScript v1 declaration files typings/ @@ -145,4 +146,6 @@ yarn-error.log* data/challengeMap.json # Docker local overrides -docker-compose.override.yml \ No newline at end of file +docker-compose.override.yml + +/graphify-out diff --git a/pages/api/auth/[...nextauth].js b/pages/api/auth/[...nextauth].js index 27376ddf1..3af681871 100644 --- a/pages/api/auth/[...nextauth].js +++ b/pages/api/auth/[...nextauth].js @@ -44,6 +44,7 @@ if (process.env.GITHUB_OAUTH_PROVIDER_ENABLED == 'true') { GithubProvider({ clientId: process.env.GITHUB_ID, clientSecret: process.env.GITHUB_SECRET, + issuer: process.env.GITHUB_OAUTH_ISSUER, // Enable dangerous account linking in dev environment ...(process.env.DANGEROUS_ACCOUNT_LINKING_ENABLED == 'true' ? { allowDangerousEmailAccountLinking: true }