{"hash":"github","items":[{"hash":"0","content":"<h1 id=\"connect-apps-to-git-hub\">Connect Apps to GitHub</h1>\n<p>The GitHub social connection allows users to log in to your application using their GitHub profile.</p>\n<p>By default, Auth0 automatically syncs user profile data with each user login, thereby ensuring that changes made in the connection source are automatically updated in Auth0. Optionally, you can <a href=\"https://auth0.com/docs/users/configure-connection-sync-with-auth0\">disable user profile data synchronization</a> to allow for updating profile attributes from your application.</p>\n"},{"hash":"1","content":"<h2 id=\"prerequisites\">Prerequisites</h2>\n<p>Before you begin, <a href=\"https://github.com/settings/developers\">sign up for a GitHub Developer account</a>.</p>\n"},{"hash":"2","content":"<h2 id=\"steps\">Steps</h2>\n<p>To connect your app to GitHub, you will:</p>\n<ol>\n<li><a href=\"#set-up-app-in-github\">Set up app in GitHub</a></li>\n<li><a href=\"#create-and-enable-connection-in-auth0\">Create and enable connection in Auth0</a></li>\n<li><a href=\"#test-connection\">Test connection</a></li>\n</ol>\n"},{"hash":"3","content":"<h3 id=\"set-up-app-in-git-hub\">Set up app in GitHub</h3>\n<p>Register a new app in <a href=\"https://github.com/settings/developers#oauth-apps\">GitHub Developer Settings: OAuth Apps</a>. During this process, GitHub will generate a <strong>Client ID</strong> and <strong>Client Secret</strong> for your application; make note of these.</p>\n<p>While setting up your app, use the following settings:</p>\n<div class=\"tablew\"><table class=\"table\"><thead>\n<tr>\n<th>Field</th>\n<th>Value to Provide</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Homepage URL</td>\n<td><code>https://{yourDomain}</code></td>\n</tr>\n<tr>\n<td>Authorization callback URL</td>\n<td><code>https://{yourDomain}/login/callback</code></td>\n</tr>\n</tbody>\n</table></div><div class=\"panel panel-default\">\n            <div class=\"panel-heading\">\n              <h3 class=\"panel-title\">Find your Auth0 domain name</h3>\n            </div>\n          <div class=\"panel-body\">\n          <p>If your Auth0 domain name is not shown above and you are not using our custom domains feature, your domain name is your tenant name, your regional subdomain (unless your tenant is in the US region and was created before June 2020), plus<code>.auth0.com</code>. For example, if your tenant name were <code>exampleco-enterprises</code>, your Auth0 domain name would be <code>exampleco-enterprises.us.auth0.com</code> and your callback URL would be <code>https://exampleco-enterprises.us.auth0.com/login/callback</code>. (If your tenant is in the US and was created before June 2020, then your domain name would be <code>https://exampleco-enterprises.auth0.com</code>.)</p>\n<p>If you are using <a href=\"https://auth0.com/docs/custom-domains\">custom domains</a>, your <dfn data-key=\"callback\">redirect URI</dfn> will have the following format: <code>https://&lt;YOUR CUSTOM DOMAIN&gt;/login/callback</code>.</p>\n</div></div>\n"},{"hash":"4","content":"<h3 id=\"create-and-enable-connection-in-auth-0\">Create and enable connection in Auth0</h3>\n<p><a href=\"https://auth0.com/docs/dashboard/guides/connections/set-up-connections-social\">Set up the GitHub social connection</a> in Auth0. Make sure you have the generated <strong>Client ID</strong> and <strong>Client Secret</strong>.</p>\n"},{"hash":"5","content":"<h3 id=\"test-connection\">Test connection</h3>\n<p>You're ready to <a href=\"https://auth0.com/docs/dashboard/guides/connections/test-connections-social\">test your connection</a>. After logging in, you'll be prompted to allow your app access. To do so, click <strong>Install unlisted app</strong>.</p>\n"},{"hash":"6","content":"<h2 id=\"troubleshooting\">Troubleshooting</h2>\n<p>If you are receiving <code>Access Denied</code> when calling the GitHub API, you probably have not requested the correct permissions for the user during login. To learn more, see <a href=\"https://auth0.com/docs/connections/adding-scopes-for-an-external-idp\">Add scopes/permissions to call Identity Provider's APIs</a>.</p>\n"}]}