diff --git a/astro/src/content/docs/lifecycle/authenticate-users/identity-providers/social/_github-troubleshooting.mdx b/astro/src/content/docs/lifecycle/authenticate-users/identity-providers/social/_github-troubleshooting.mdx new file mode 100644 index 0000000000..2185733dc8 --- /dev/null +++ b/astro/src/content/docs/lifecycle/authenticate-users/identity-providers/social/_github-troubleshooting.mdx @@ -0,0 +1,6 @@ +import Breadcrumb from 'src/components/Breadcrumb.astro'; + +GitHub users must have a public email address to allow FusionAuth to link their account on an email address. If they do not, you will get an error message stating `An email address was not provided for the user. This account cannot be used to login, unable to complete this login request.` You have two options: + +* Require all users who use GitHub to log in have a public email address. This is configured on a per-user basis under Public Profile -> Public Email. This is done **on GitHub**. +* Link on [username or create an anonymous link](/docs/lifecycle/authenticate-users/identity-providers/#linking-strategies). Using these strategies ensure the configured GitHub OIDC connection works for every user, no matter their GitHub privacy settings, but means you won't have access to their email address. diff --git a/astro/src/content/docs/lifecycle/authenticate-users/identity-providers/social/github.mdx b/astro/src/content/docs/lifecycle/authenticate-users/identity-providers/social/github.mdx index 95fd4d2b3a..a424c35b06 100644 --- a/astro/src/content/docs/lifecycle/authenticate-users/identity-providers/social/github.mdx +++ b/astro/src/content/docs/lifecycle/authenticate-users/identity-providers/social/github.mdx @@ -9,13 +9,14 @@ quatercategory: social --- import Aside from 'src/components/Aside.astro'; import IdentityProviderOverviewDiagram from 'src/content/docs/_shared/_identity-provider-overview-diagram.astro'; +import GitHubTroubleshooting from 'src/content/docs/lifecycle/authenticate-users/identity-providers/social/_github-troubleshooting.mdx'; import InlineField from 'src/components/InlineField.astro'; import OpenidConnectExampleLambda from 'src/content/docs/_shared/_openid-connect-example-lambda.mdx'; ## Configure OpenID Connect with GitHub Once you have completed this configuration you may enable an OpenID Connect "Login with GitHub" button for one or more FusionAuth Applications. See [GitHub - Creating an OAuth App](https://developer.github.com/apps/building-oauth-apps/creating-an-oauth-app/) for an additional reference. @@ -75,3 +76,7 @@ The final item to configure is under the Options tab. For GitHu That's it, now the `Login with GitHub` button will show up on the login page of our `Pied Piper` application. FusionAuth GitHub IdP Configuration + +## Troubleshooting + +