{"id":8116,"date":"2023-08-15T10:14:16","date_gmt":"2023-08-15T17:14:16","guid":{"rendered":"https:\/\/membermouse.com\/?post_type=ht_kb&#038;p=8116"},"modified":"2025-02-26T15:29:01","modified_gmt":"2025-02-26T20:29:01","slug":"configuracion-del-inicio-de-sesion-con-google","status":"publish","type":"ht_kb","link":"https:\/\/membermouse.com\/es\/docs\/configuring-sign-in-with-google\/","title":{"rendered":"Configuraci\u00f3n del inicio de sesi\u00f3n con Google"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/membermouse.com\/plans\/\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">PLUS PLAN +<\/mark><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The MemberMouse Google login extension will allow your users to create a new free membership using their Google login credentials.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Please note that these instructions can require a different order for some or look different than shown. The developer interface changes regularly, and each account will have verification requirements that may not be covered in this article.&nbsp;<\/p>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h5 class=\"wp-block-heading\">Creating a Google App<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">The first step to enabling the Google login extension on your site is to create a Google App. To create your app, follow these steps:<\/p>\n\n\n\n<div style=\"height:5px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ol class=\"wp-block-list\">\n<li>First, you need to create a project. To access the Google developers page, visit&nbsp;<a href=\"https:\/\/console.developers.google.com\/project\" target=\"_blank\" rel=\"noopener\" title=\"\">https:\/\/console.developers.google.com\/project<\/a>. If you have previously created Google applications, you will see them here.<br><br>Click&nbsp;<em>Create Project<\/em>.<br><br><img decoding=\"async\" class=\"wp-image-9995\" style=\"width: 400px;\" src=\"https:\/\/storage.googleapis.com\/wpgcbucket\/wp\/2023\/09\/7a78ff8d-1s7omknyx3rq1nkh5u_p172ry4d-ecpfwa.png\" alt=\"\"><br><br><\/li>\n\n\n\n<li>&nbsp;You will have to fill out some information about your new project:<br><br><img decoding=\"async\" class=\"wp-image-9996\" style=\"width: 450px;\" src=\"https:\/\/storage.googleapis.com\/wpgcbucket\/wp\/2023\/09\/6296ba8b-glvzerr0ev8nazdvbbqovc6tjelezdw-ig.png\" alt=\"\"><br><br><br>Once you click &#8216;Create' then you will be taken inside the IAM and Admin for your project.<br><br><br><\/li>\n\n\n\n<li>Click the three bar navigation menu on the top left, then click&nbsp;<em>Credentials<\/em>&nbsp;under APIs & Services.<br><br><img decoding=\"async\" class=\"wp-image-9997\" style=\"width: 450px;\" src=\"https:\/\/storage.googleapis.com\/wpgcbucket\/wp\/2023\/09\/8f67ce33-trqweis1uhfx1ayruc5lvcuypgk6fiw6da.png\" alt=\"\"><br><br><\/li>\n\n\n\n<li>Click&nbsp;<em>Create Credentials&nbsp;<\/em>and&nbsp;<em>OAuth client ID<\/em>:<br><br><img decoding=\"async\" class=\"wp-image-9998\" style=\"width: 450px;\" src=\"https:\/\/storage.googleapis.com\/wpgcbucket\/wp\/2023\/09\/1ddc3f9c-dhrbiwvy1xt3lqkzwahxuerxgnrc_pltha.png\" alt=\"\"><br><br><\/li>\n\n\n\n<li>The second Credentials section will load:<br><br><img decoding=\"async\" class=\"wp-image-10000\" style=\"width: 450px;\" src=\"https:\/\/storage.googleapis.com\/wpgcbucket\/wp\/2023\/09\/08d60492-aflk0ozuaml9lxfujbwcsywktxpbfpqb_a.png\" alt=\"\"><br><br><br><strong>Authorized Javascript Origins<\/strong>: This is your base site URL (as used in your MemberMouse license)<br><br><strong>Authorized Redirect URL:\u00a0<\/strong>This is the URL you see on the MemberMouse Google configuration screen:<br><br><code>https:\/\/yoursite.com\/wp-content\/plugins\/membermouse\/lib\/hybridauth\/?hauth.done=Google<\/code><br><br><br>During the setup process, it may ask you to go to an additional configuration screen to set your name, and authorized domain:<br><br><img decoding=\"async\" class=\"wp-image-10005\" style=\"width: 450px;\" src=\"https:\/\/storage.googleapis.com\/wpgcbucket\/wp\/2023\/09\/36b6edbb-hehyeoivir3vc3yg_5thzyfbqtpgu1nuaw.png\" alt=\"\"><br><br><br><strong>Email Address:\u00a0<\/strong>This is the address of the gmail account you are using<br><br><strong>Product name shown to users:\u00a0<\/strong>Usually this is your website name. This is what Google will list on the access request for the user to confirm.<br><br><strong>Homepage URL:<\/strong>\u00a0This will be your website homepage, it is optional<br><br><strong>Product Logo:<\/strong>\u00a0Your logo is optional, but it will appear on the request<br><br><strong>Privacy Policy URL:<\/strong>\u00a0This is optional<br><br><strong>Terms of service URL:<\/strong>\u00a0Also optional<br><br><\/li>\n\n\n\n<li>Once you have completed the OAuth Client ID screen, click&nbsp;<em>Create<\/em>. Your client ID and secret will be displayed.<br><br><img decoding=\"async\" class=\"wp-image-10007\" style=\"width: 450px;\" src=\"https:\/\/storage.googleapis.com\/wpgcbucket\/wp\/2023\/09\/65c91ed4-yme_fefk0yssin1cdx9zup00wddd5jlfqq.png\" alt=\"\"><br><br><br><\/li>\n\n\n\n<li>Open up a new tab on your web browser, and move to configuring the Google Login Extension.<\/li>\n<\/ol>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h5 class=\"wp-block-heading\">Configuring the Google Login Extension<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">To enable the Google login extension, follow the steps below:<\/p>\n\n\n\n<div style=\"height:5px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In the MemberMouse menu, click on&nbsp;<em>General Settings<\/em>.<br><br><\/li>\n\n\n\n<li>Next, click on the&nbsp;<em>Extensions<\/em>&nbsp;tab and from the following page, click on the Google logo.<br><br><\/li>\n\n\n\n<li>You will need to provide some information from your Google app, as well as make a few selections:<br><br><img decoding=\"async\" class=\"wp-image-10009\" style=\"width: 550px;\" src=\"https:\/\/storage.googleapis.com\/wpgcbucket\/wp\/2023\/09\/0bda2244-9076.png\" alt=\"\"><br><br><br><strong>Client ID<\/strong>&nbsp;&#8211; From your Google project dashboard.<br><strong><br>App Secret<\/strong>&nbsp;&#8211; From your Google project dashboard.<br><strong><br>Allow Signups?<\/strong>&nbsp;&#8211; If you want to allow new customers to sign up using their Google login credentials, then click this box. Otherwise, members will only be able to login using their Google credentials, but not sign up for a new membership.<br><br><strong>Membership Level &#8211;&nbsp;<\/strong>Customers can only signup for a free membership level when they are using their Google login credentials. Once they are members, they can purchase a paid membership. You need to select the default free membership you would like customers to join when using Google.<br><strong><br>Callback URL:<\/strong>&nbsp;&#8211; This is the URL that is used in the Google project in the steps above.<br><br><\/li>\n\n\n\n<li>Click&nbsp;<em>Save Configuration.<\/em><\/li>\n<\/ol>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h5 class=\"wp-block-heading\">Adding Google Signup and Login to Your Site<\/h5>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><img decoding=\"async\" class=\"wp-image-10012\" style=\"width: 250px;\" src=\"https:\/\/storage.googleapis.com\/wpgcbucket\/wp\/2023\/08\/3ea8b32e-login-google.png\" alt=\"\"><br><br>Once you have configured your site to accept Google login, you need to add the following SmartTags to allow for signup and login:<\/p>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h6 class=\"wp-block-heading\"><strong>Signup Button SmartTag<\/strong>\u2122<\/h6>\n\n\n\n<p class=\"wp-block-paragraph\">The following SmartTag\u2122 generates a button that customers can use to sign up for a new account:<br><br><code>[MM_Social_Signup_Button provider='Google']<\/code><br><br><br><em><strong>Attributes:<\/strong><br><br><\/em>provider&nbsp;&#8211; Set the&nbsp;provider&nbsp;attribute to&nbsp;&#8216;all'&nbsp;to generate signup buttons for all active social login providers, or you can use an individual tag for each provider&nbsp;Twitter,&nbsp;Facebook&nbsp;and&nbsp;Google. For example:<br><br><code>[MM_Social_Signup_Button provider='all']<\/code><br><em><br><br><strong>Optional Attributes:<\/strong><br><\/em><br>membershipLevel&nbsp;&#8211; You can optionally use this attribute to override the default signup membership level defined above. It takes a membership level ID for free membership levels only. For example:<br><br><code>[MM_Social_Signup_Button provider='Google' membershipLevel='2']<\/code><br><br><br>Read this article to&nbsp;<a href=\"https:\/\/membermouse.com\/docs\/finding-ids-for-membership-levels-products-and-bundles\/\">learn how to find your membership level IDs<\/a>.<\/p>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h6 class=\"wp-block-heading\"><strong>Login Button SmartTag<\/strong>\u2122<\/h6>\n\n\n\n<p class=\"wp-block-paragraph\">The following SmartTag\u2122 generates a button that customers can use to log into an existing account:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>[MM_Social_Login_Button provider='Google']<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br><em><strong>Attributes:<\/strong><br><br><\/em>provider&nbsp;&#8211; Set the&nbsp;provider&nbsp;attribute to&nbsp;&#8216;all'&nbsp;to generate signup buttons for all active social login providers, or you can use an individual tag for each provider&nbsp;Twitter,&nbsp;Facebook&nbsp;and&nbsp;Google. For example:<strong><br><\/strong><br><code>[MM_Social_Login_Button provider='all']<\/code><\/p>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h5 class=\"wp-block-heading\">Troubleshooting<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">In some systems the standard callback URL will return the following error when attempting to use the login:<br><br><img decoding=\"async\" class=\"wp-image-10014\" style=\"width: 450px;\" src=\"https:\/\/storage.googleapis.com\/wpgcbucket\/wp\/2023\/09\/030cdeba-google-login-issue-1.png\" alt=\"\"><br><br><br>This means that the URL listed is not configured with Google as an authorized redirect URI. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To fix this, go to the Google Developers Console, click&nbsp;<em>APIS & AUTH<\/em>&nbsp;&gt;&nbsp;<em>Credentials&nbsp;<\/em>and then make sure that the URI in the error message above is pasted in the&nbsp;<em>Redirect URIs<\/em>&nbsp;area on this page. The URI Google is referring to in the error message needs to be included here exactly as it appears in the error message.<\/p>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>PLAN PLUS + La extensi\u00f3n de inicio de sesi\u00f3n de Google de MemberMouse permitir\u00e1 a sus usuarios crear una nueva afiliaci\u00f3n gratuita utilizando sus credenciales de inicio de sesi\u00f3n de Google. Tenga en cuenta que estas instrucciones pueden requerir...<\/p>","protected":false},"author":21411,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"_strive_editorial_status":"not-started","_strive_copy_of":0,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"ht-kb-category":[193],"ht-kb-tag":[],"class_list":["post-8116","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-social-sign-on"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/membermouse.com\/es\/wp-json\/wp\/v2\/ht-kb\/8116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/membermouse.com\/es\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/membermouse.com\/es\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/membermouse.com\/es\/wp-json\/wp\/v2\/users\/21411"}],"replies":[{"embeddable":true,"href":"https:\/\/membermouse.com\/es\/wp-json\/wp\/v2\/comments?post=8116"}],"version-history":[{"count":1,"href":"https:\/\/membermouse.com\/es\/wp-json\/wp\/v2\/ht-kb\/8116\/revisions"}],"predecessor-version":[{"id":20890,"href":"https:\/\/membermouse.com\/es\/wp-json\/wp\/v2\/ht-kb\/8116\/revisions\/20890"}],"wp:attachment":[{"href":"https:\/\/membermouse.com\/es\/wp-json\/wp\/v2\/media?parent=8116"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/membermouse.com\/es\/wp-json\/wp\/v2\/ht-kb-category?post=8116"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/membermouse.com\/es\/wp-json\/wp\/v2\/ht-kb-tag?post=8116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}