{"id":255,"date":"2026-07-01T12:42:56","date_gmt":"2026-07-01T05:42:56","guid":{"rendered":"https:\/\/giaodienwp.net\/?p=255"},"modified":"2026-07-01T12:42:56","modified_gmt":"2026-07-01T05:42:56","slug":"huong-dan-cau-hinh-google-login-google-oauth-2-0-setup-guide","status":"publish","type":"post","link":"https:\/\/giaodienwp.net\/en\/huong-dan-cau-hinh-google-login-google-oauth-2-0-setup-guide\/","title":{"rendered":"Google Login Configuration \/ Google OAuth 2.0 Setup Guide"},"content":{"rendered":"<h2>Google Login Configuration Guide (Vietnamese)<\/h2>\n<p>This document provides detailed instructions on how to create and configure a Google OAuth project to support the Google login feature on your website, using the new Google Cloud Console navigation interface.<\/p>\n<h3>Step 1: Create a New Project<\/h3>\n<ol>\n<li>Visit the homepage <a href=\"https:\/\/console.cloud.google.com\/\" target=\"_blank\" rel=\"noopener nofollow\">Google Cloud Console<\/a>.<\/li>\n<li>Click on the project dropdown at the top left corner (next to the Google Cloud logo) and select <strong>New Project<\/strong> (New Project).<\/li>\n<li>Enter the project name (e.g., <code>ZTruyen Login<\/code>) and click <strong>Create<\/strong> (Create).<\/li>\n<li>Wait a few seconds for the project to be created, then select the newly created project from the dropdown menu in the top corner.<\/li>\n<\/ol>\n<h3>Step 2: Configure Branding (OAuth Consent Screen)<\/h3>\n<p>Configuration path: <a href=\"https:\/\/console.cloud.google.com\/auth\/branding\" target=\"_blank\" rel=\"noopener nofollow\">Google Cloud Auth Branding<\/a><\/p>\n<p>This is where you set up the app information displayed to users when they click login.<\/p>\n<ol>\n<li>Access the link above and select your project (if prompted).<\/li>\n<li>If the system asks to select <strong>User Type<\/strong>, please select <strong>External<\/strong> (Other) and click <strong>Create<\/strong>.<\/li>\n<li>Fill in the required information:\n<ul>\n<li><strong>App name:<\/strong> Enter a display name (for example: <code>ZTruyen<\/code>).<\/li>\n<li><strong>User support email:<\/strong> Select your administrator email.<\/li>\n<li><strong>Developer contact information:<\/strong> Enter your email to receive operational notifications from Google.<\/li>\n<\/ul>\n<\/li>\n<li><strong>IMPORTANT NOTE:<\/strong> Strictly <strong>DO NOT upload an App logo<\/strong> at this step if you do not want to submit business identity verification documents for Google's approval. Leaving the logo blank will help avoid the &#8220;Unverified app&#8221; warning screen when users log in.<\/li>\n<li>Fill in the information <strong>App Domain<\/strong>: Add your website domain name (e.g., https:\/\/giaodienwp.net\/) to the fields: <em>Application home page<\/em>, <em>Application privacy policy link<\/em>, and the section <strong>Authorized domains<\/strong>.<\/li>\n<li>Click <strong>Save and Continue<\/strong> (Save and Continue).<\/li>\n<li>In the section <strong>Scopes<\/strong> (Scope):\n<ul>\n<li>Click <strong>Add or Remove Scopes<\/strong>.<\/li>\n<li>Select basic (non-sensitive) permissions including: <code>...\/auth\/userinfo.email<\/code>, <code>...\/auth\/userinfo.profile<\/code>, and <code>openid<\/code>.<\/li>\n<li>Click <strong>Update<\/strong> -&gt; select <strong>Save and Continue<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3>Step 3: Configure Audience and Activate Production<\/h3>\n<p>Configuration path: <a href=\"https:\/\/console.cloud.google.com\/auth\/audience\" target=\"_blank\" rel=\"noopener nofollow\">Google Cloud Auth Audience<\/a><\/p>\n<p>By default, the application will be in Testing mode with restricted logins. You need to promote it to In Production.<\/p>\n<ol>\n<li>Access the link above.<\/li>\n<li>Under <strong>Publishing status<\/strong>, click the button <strong>PUBLISH APP<\/strong> (Publish App).<\/li>\n<li>Click <strong>Confirm<\/strong> (Confirm).<\/li>\n<li>The project status will change to <strong>In Production<\/strong> (In Production). Now, any Gmail account can log in without the 100-user limit.<\/li>\n<\/ol>\n<h3>Step 4: Create Credentials (Client Authentication Info)<\/h3>\n<p>Configuration path: <a href=\"https:\/\/console.cloud.google.com\/auth\/clients\" target=\"_blank\" rel=\"noopener nofollow\">Google Cloud Auth Clients<\/a><\/p>\n<p>This is the step to create the Client ID and Client Secret to enter into your WordPress plugin.<\/p>\n<ol>\n<li>Access the link above.<\/li>\n<li>Click the button <strong>Create Client<\/strong> (Create credentials) -&gt; select <strong>OAuth client ID<\/strong>.<\/li>\n<li>Under <strong>Application type<\/strong> (Application type), select <strong>Web application<\/strong> (Web application).<\/li>\n<li>Enter an identifying name (for example: <code>ZTruyen Web Client<\/code>).<\/li>\n<li><strong>Authorized JavaScript origins:<\/strong> Enter your website home page URL (for example: <code>https:\/\/quangtuyen.vn<\/code>).<\/li>\n<li><strong>Authorized redirect URIs (Very important):<\/strong> Enter the Callback URL to receive login data provided by the WordPress Plugin. For example: <code>https:\/\/quangtuyen.vn\/wp-login.php?loginSocial=google<\/code><\/li>\n<li>Click <strong>Create<\/strong> (Create).<\/li>\n<li>Copy <strong>Client ID<\/strong> and <strong>Client Secret<\/strong> just created to configure the Plugin on your website.<\/li>\n<\/ol>\n<hr \/>\n<h2>Google OAuth 2.0 Setup Guide (English)<\/h2>\n<p>This document provides step-by-step instructions to create and configure a Google OAuth project for Google Login on your website, using the new Google Cloud Console layout.<\/p>\n<h3>Step 1: Create a New Project<\/h3>\n<ol>\n<li>Go to the <a href=\"https:\/\/console.cloud.google.com\/\" target=\"_blank\" rel=\"noopener nofollow\">Google Cloud Console<\/a>.<\/li>\n<li>Click on the project dropdown at the top-left (next to the Google Cloud logo) and select <strong>New Project<\/strong>.<\/li>\n<li>Enter your project name (e.g., <code>ZTruyen Login<\/code>) and click <strong>Create<\/strong>.<\/li>\n<li>Wait a few seconds for creation, then select the new project from the top dropdown menu.<\/li>\n<\/ol>\n<h3>Step 2: Configure Branding (OAuth Consent Screen)<\/h3>\n<p>Configuration URL: <a href=\"https:\/\/console.cloud.google.com\/auth\/branding\" target=\"_blank\" rel=\"noopener nofollow\">Google Cloud Auth Branding<\/a><\/p>\n<p>This configures what users see when they click the &#8220;Log in with Google&#8221; button on your site.<\/p>\n<ol>\n<li>Go to the URL above and select your project if prompted.<\/li>\n<li>If prompted for <strong>User Type<\/strong>, select <strong>External<\/strong> and click <strong>Create<\/strong>.<\/li>\n<li>Fill in the required fields:\n<ul>\n<li><strong>App name:<\/strong> Enter the display name (e.g., <code>ZTruyen<\/code>).<\/li>\n<li><strong>User support email:<\/strong> Select your Gmail\/Workspace email.<\/li>\n<li><strong>Developer contact information:<\/strong> Enter your email address to receive Google updates.<\/li>\n<\/ul>\n<\/li>\n<li><strong>IMPORTANT NOTE:<\/strong> Do <strong>NOT<\/strong> upload an App logo at this stage unless you are prepared to submit company registration documents to Google. Leaving the logo empty helps bypass the &#8220;Unverified App&#8221; warning screen during user logins.<\/li>\n<li>Fill in the <strong>App Domain<\/strong> details: Enter your website URL (e.g., https:\/\/giaodienwp.net\/) in the <em>Application home page<\/em>, <em>Application privacy policy link<\/em>, and the <strong>Authorized domains<\/strong> list.<\/li>\n<li>Click <strong>Save and Continue<\/strong>.<\/li>\n<li>In the <strong>Scopes<\/strong> section:\n<ul>\n<li>Click <strong>Add or Remove Scopes<\/strong>.<\/li>\n<li>Check basic non-sensitive scopes: <code>...\/auth\/userinfo.email<\/code>, <code>...\/auth\/userinfo.profile<\/code>, and <code>openid<\/code>.<\/li>\n<li>Click <strong>Update<\/strong>, then <strong>Save and Continue<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3>Step 3: Configure Audience &amp; Publish to Production<\/h3>\n<p>Configuration URL: <a href=\"https:\/\/console.cloud.google.com\/auth\/audience\" target=\"_blank\" rel=\"noopener nofollow\">Google Cloud Auth Audience<\/a><\/p>\n<p>By default, your app is in Testing status. You must publish it to allow public logins.<\/p>\n<ol>\n<li>Go to the URL above.<\/li>\n<li>In the <strong>Publishing status<\/strong> section, click <strong>PUBLISH APP<\/strong>.<\/li>\n<li>Click <strong>Confirm<\/strong>.<\/li>\n<li>The status will update to <strong>In Production<\/strong>. Now, any Gmail user can sign in without the 100-user limit restriction.<\/li>\n<\/ol>\n<h3>Step 4: Create Client Credentials (Client IDs)<\/h3>\n<p>Configuration URL: <a href=\"https:\/\/console.cloud.google.com\/auth\/clients\" target=\"_blank\" rel=\"noopener nofollow\">Google Cloud Auth Clients<\/a><\/p>\n<p>This generates the Client ID and Client Secret needed for your WordPress Google Login plugin.<\/p>\n<ol>\n<li>Go to the URL above.<\/li>\n<li>Click <strong>Create Client<\/strong> -&gt; select <strong>OAuth client ID<\/strong>.<\/li>\n<li>Under <strong>Application type<\/strong>, select <strong>Web application<\/strong>.<\/li>\n<li>Enter a name for identification (e.g., <code>ZTruyen Web Client<\/code>).<\/li>\n<li><strong>Authorized JavaScript origins:<\/strong> Enter your website homepage URL (e.g., <code>https:\/\/giaodienwp.net\/<\/code>).<\/li>\n<li><strong>Authorized redirect URIs:<\/strong> Enter the callback URI provided by your WordPress Google Login plugin (e.g., https:\/\/giaodienwp.net\/<code>wp-login.php?loginSocial=google<\/code>).<\/li>\n<li>Click <strong>Create<\/strong>.<\/li>\n<li>Copy the generated <strong>Client ID<\/strong> and <strong>Client Secret<\/strong> and paste them into your WordPress website plugin settings.<\/li>\n<\/ol>","protected":false},"excerpt":{"rendered":"<p>H\u01b0\u1edbng D\u1eabn C\u1ea5u H\u00ecnh Google Login (Ti\u1ebfng Vi\u1ec7t) T\u00e0i li\u1ec7u n\u00e0y h\u01b0\u1edbng d\u1eabn chi ti\u1ebft c\u00e1ch t\u1ea1o v\u00e0 c\u1ea5u h\u00ecnh d\u1ef1 \u00e1n Google OAuth \u0111\u1ec3 ph\u1ee5c v\u1ee5 t\u00ednh n\u0103ng \u0111\u0103ng nh\u1eadp b\u1eb1ng Google tr\u00ean website c\u1ee7a b\u1ea1n, s\u1eed d\u1ee5ng giao di\u1ec7n \u0111i\u1ec1u h\u01b0\u1edbng m\u1edbi c\u1ee7a Google Cloud Console. B\u01b0\u1edbc 1: T\u1ea1o d\u1ef1 \u00e1n m\u1edbi (New [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-255","post","type-post","status-publish","format-standard","hentry","category-huong-dan"],"_links":{"self":[{"href":"https:\/\/giaodienwp.net\/en\/wp-json\/wp\/v2\/posts\/255","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/giaodienwp.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/giaodienwp.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/giaodienwp.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/giaodienwp.net\/en\/wp-json\/wp\/v2\/comments?post=255"}],"version-history":[{"count":0,"href":"https:\/\/giaodienwp.net\/en\/wp-json\/wp\/v2\/posts\/255\/revisions"}],"wp:attachment":[{"href":"https:\/\/giaodienwp.net\/en\/wp-json\/wp\/v2\/media?parent=255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/giaodienwp.net\/en\/wp-json\/wp\/v2\/categories?post=255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/giaodienwp.net\/en\/wp-json\/wp\/v2\/tags?post=255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}