{"hash":"google","items":[{"hash":"0","content":"<h1 id=\"connect-apps-to-google\">Connect Apps to Google</h1>\n<p>The Google social connection allows users to log in to your application using their Google 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:</p>\n<ul>\n<li><a href=\"https://console.developers.google.com/\">Sign up for a Google Developer account</a>.</li>\n<li><a href=\"https://support.google.com/googleapi/answer/6251787?ref_topic=7014522\">Create a Google Project</a></li>\n</ul>\n"},{"hash":"2","content":"<h2 id=\"steps\">Steps</h2>\n<p>To connect your app to Google, you will:</p>\n<ol>\n<li><a href=\"#create-google-credentials\">Create Google credentials</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=\"create-google-credentials\">Create Google credentials</h3>\n<p>Configure your OAuth consent screen and create credentials in the <a href=\"https://console.developers.google.com/apis/credentials\">Google Developer Console</a> using Google's <a href=\"https://support.google.com/googleapi/answer/6158849\">Setting up OAuth 2.0</a> documentation. During this process, Google 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 OAuth consent screen, 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>User Type</td>\n<td>Select <strong>External</strong>.</td>\n</tr>\n<tr>\n<td>Application Type</td>\n<td>Select <strong>Public</strong>.</td>\n</tr>\n<tr>\n<td>Authorized domains</td>\n<td><code>auth0.com</code></td>\n</tr>\n</tbody>\n</table></div><div class=\"alert-container\" severity=\"warning\"><p>If your application requests sensitive OAuth scopes or uses a custom image, <a href=\"https://developers.google.com/apps-script/guides/client-verification\">Google will limit it to 100 logins until the OAuth consent screen is verified</a>. Verification can take several days. To learn more about sensitive scopes, see Google's <a href=\"https://developers.google.com/identity/protocols/oauth2/scopes\">OAuth 2.0 Scopes for Google APIs</a> documentation. To pass verification you will need to prove ownership of all Authorized domains you specify on Google's OAuth consent screen. If you're using custom domains, use your custom domain instead of <code>auth0.com</code>.</p>\n</div>\n<p>While setting up your credentials, 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>Application type</td>\n<td>Web application</td>\n</tr>\n<tr>\n<td>Authorized JavaScript origins</td>\n<td><code>https://{yourDomain}</code></td>\n</tr>\n<tr>\n<td>Authorized redirect URIs</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 redirect URI 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 Google social connection</a> in Auth0. Make sure you have the <strong>Client ID</strong> and the <strong>Client Secret</strong> generated.</p>\n<p>Besides the standard social connection settings, the Google social connection configuration includes the following:</p>\n<div class=\"tablew\"><table class=\"table\"><thead>\n<tr>\n<th>Setting</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Allowed Mobile Client IDs</td>\n<td>Client IDs of any mobile apps that are allowed to use the connection.</td>\n</tr>\n</tbody>\n</table></div>"},{"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>.</p>\n"}]}