From e265f2c2cb0e252c6b00c344ea13ff19572ae7f8 Mon Sep 17 00:00:00 2001 From: Adolfo Reyna Date: Mon, 16 Mar 2026 16:17:18 -0400 Subject: [PATCH] moving to container --- .DS_Store | Bin 0 -> 8196 bytes assets/.DS_Store | Bin 0 -> 8196 bytes assets/images/logo.svg | 47 +++++++++++++++++++++++++++++++++++++++++ google-login-plan.md | 44 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 91 insertions(+) create mode 100644 .DS_Store create mode 100644 assets/.DS_Store create mode 100644 assets/images/logo.svg create mode 100644 google-login-plan.md diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..a100183d000121a88666263cc336f152bd5a5fdd GIT binary patch literal 8196 zcmeHMU2GIp6u#fIzzh>$s4Wy^*p(HiP{L9Qh$w8kZRDrrZ(I7q&$7ES(h1Xe#nE1qtfB0ZxJa_Ia*aG^b0iD~-J#)`J z-<>&UzB6~vlre_ZlCg@hdd8Sc2bY>k-Ax*w=f@3A3N_UvL3qY|=H-XIp}g(pZ?KLO zQ3Rq0L=lK05Je!0!0iwL+Ov6+Z?W%-*{F{q5JljB83F!&h||GkDwN|w2Cok4f)aov zF9Cu^=Trv-n0P2tp&S=7fYO?xdO!$8SYklHX+F-)Nv1+ME~J1n2slG{WrP(9f~ylQ z9+)$vgpB$q0#O8Ri~vucsVv7l`ZFih?`QKvw&nTB-Ei}KA+_Sph=aX7X3-<5D5qx5josU@qG{cOsrD_MyDrSqX4j}{-JG7X# z?8|ut(=jaPQ1`H9_yheERmZm;vCN{P%tm9ElN&TI)YQ+LfA<1i7dF>1l~sC6dFx2Y z@<+6UEQ@RCixP^go!)1Vlbx=?S2ThdU0<|RmiKafx@b}_)T+L`kpQ_ak6aFKGr3Ap zG_UJ0J$eCE*Q}Kl&FHpsdD9M64{RXSww|)^I8@ecl9k?qJ2*(rctWSA+hke$^Z>tb zN6zzi44KZgTS{-1<$iA*v+z8NFN9&J#wnoU%n!r)MA-FDEKoOQe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ogAOvkXCf$kB@@CW-Ts*Z0xWSK=pnTy6QM;|gT)YLCnc;}*6OxRqJ##9~X9%kqA%&lFASg<6fRY$Sl*<&n$bZKl>J zisp44p+_&E>bmu^q8Z(`o;U4Kb>AjZ?dT~Bk3(hM7Fp>nxI;taj3;!lOq(ogpB&;B z?$AAd*RbhayQR!lS?>1+^`g0Jgosx`bjWh>7)j3|?S|#M#UL6xm&9Uye5n@0Fb#5g zVf})dST@!zYv&20Sx(s^s?#$NjF*!Yt|ike#A)&aQ=9}bPNq|0R9i6&CEws;EX7*c zc6Nvjvr%?}J=5td>(8gLJquolf& zj|@7{iJj<20R~JAz(xsWj9?Ux;4wUoCvXDK;03&hlXw}g;!V7TxA8tc#78)Xk8u%S z<1)U%75t2=_(f8r8flRflNL+Mr3Pt*v{KqEZIQN0d!&9TCk+Y@q)NISoa~u2O5;hd z5K6c36QFeJ=IIuHaO<}1J34OLbo**HPp~^`>*mc*EM2j>`Q8UwuF+7iwnEfDCP2XX zNtqIGKH$Yvz6P17E{=CoQkciCr=m#BNS9%6iWs!U+u|C}FZu6c z`lswX`;wS`g_!;usvu)N5?F>5F?%!8Xh9p=iQT)g2U&FCAaXd2JaOHI0~be8#2Chj z=@WPq$MGbd!qa#T&lBHI;w57HYj_=R;2oUC8Jxv?0q;M<7r2CPr!cv5GL!MsR3?|R zMaOoX0n%64KN<3`9#x6EujloD`>ntK|EqnBZa#`Y6oEgF0IJ)vZLMT;t9Kl)wG(t4 zrh_+bHz8yIp)M%LNe1OO$!mWY(s_bRIVK&-2_Z>C?H~UTz<;~{)z9r{|Bv>6UJU<- H_y6Akc|C9% literal 0 HcmV?d00001 diff --git a/assets/images/logo.svg b/assets/images/logo.svg new file mode 100644 index 0000000..f46699f --- /dev/null +++ b/assets/images/logo.svg @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/google-login-plan.md b/google-login-plan.md new file mode 100644 index 0000000..b2b727b --- /dev/null +++ b/google-login-plan.md @@ -0,0 +1,44 @@ +# Google Login & User Registration Implementation Plan + +To allow users to seamlessly register, log in, and interact with the Wisdom1 site using their Google accounts, we will use a secure OAuth bridging plugin. This is the industry-standard approach for WordPress. + +## Recommended Plugin +**Nextend Social Login and Register** +- Free for Google integration. +- Highly secure (uses native Google OAuth 2.0). +- Does NOT store user passwords. +- Automatically creates a native WordPress "Subscriber" account upon first login, granting them permission to comment. + +## Step 1: Google Cloud Configuration (Manual Setup) +Before activating the plugin on the site, you must generate secure OAuth credentials from your Google account. +1. Log into the [Google Developer Console](https://console.cloud.google.com/). +2. Create a new Project (e.g., "Wisdom1 Auth"). +3. Navigate to **APIs & Services > OAuth consent screen** and configure it for "External" users. +4. Navigate to **Credentials > Create Credentials > OAuth client ID**. +5. Select **Web application** as the application type. +6. Under **Authorized redirect URIs**, add the specific URL the Nextend plugin generates (this will be provided once the plugin is installed, typically `http://wisdom1.local/wp-login.php?loginSocial=google`). +7. Once created, you will be provided a **Client ID** and a **Client Secret**. Keep these secure. + +## Step 2: WordPress Plugin Setup +1. Install and activate the `nextend-facebook-connect` plugin. +2. Navigate to **Settings > Nextend Social Login**. +3. Enable the Google provider. +4. Paste the **Client ID** and **Client Secret** generated in Step 1. +5. Verify the connection through the plugin's test panel. + +## Step 3: Custom Theme Integration (Development) +Rather than relying on the plugin's default styling, we will seamlessly integrate the login flow into the `wisdom1` theme's aesthetic. + +### Modifications Required: +1. **`comments.php`**: + - Intercept the logged-out state. + - Replace the standard name/email/website form fields with a prominent, beautifully styled **"Continue with Google"** button. + - When clicked, this button will direct the user through the Google OAuth flow and redirect them back to the article, fully logged in. +2. **`functions.php`**: + - Ensure the user's Google display name is correctly mapped to their WordPress display name so that comments render beautifully. + +## Verification +- Test clicking "Continue with Google" as a logged-out guest. +- Authenticate with a personal Google account. +- Verify that a new WordPress user is provisioned in the database. +- Verify the user is redirected back to the article and is able to leave a personalized comment.