[WordPress] 外掛分享: Edel Auth for Supabase

首頁外掛目錄 › Edel Auth for Supabase
WordPress 外掛 Edel Auth for Supabase 的封面圖片
20+
安裝啟用
尚無評分
57 天前
最後更新
問題解決
WordPress 5.8+ PHP 7.4+ v1.0.2 上架:2026-01-09

內容簡介

HTML 標籤清單,以繁體中文表示這篇文章:

<p><strong>此外掛將 Supabase 認證整合到您的 WordPress 網站中,提供一個安全、可擴展和現代的會員系統。</strong></p>

<ul>
<li>允許您完全區分“網站管理員”(使用 WordPress 原生認證)和“一般使用者”(使用 Supabase 認證)。</li>
<li>確保您的 wp-admin 保持安全,同時為您的客戶提供無縫的登錄體驗。</li>
</ul>

<p><strong>主要功能:</strong></p>

<ul>
<li>Supabase 認證:支援電子郵件/密碼、魔法連結(無密碼)和社交登錄(谷歌)。</li>
<li>自動同步:在 Supabase 中創建的使用者在登入時自動同步為 WordPress 的訂閱者。</li>
<li>登出同步:從 WordPress 登出會自動觸發從 Supabase 登出,以確保會話的一致性。</li>
<li>使用者刪除同步:在 WordPress 中刪除用戶會自動從 Supabase 中刪除對應用戶(需要服務角色金鑰)。</li>
<li>安全管理員分離:管理員被阻止通過前端表單登入,以防止特權升級攻擊。</li>
<li>智能密碼重置:自動檢測用戶是否通過 Google 註冊,引導他們使用“與 Google 登入”按鈕,而不是發送重置郵件。</li>
<li>歡迎郵件:在成功註冊後直接從 WordPress 發送可定制的“歡迎”郵件。支持自定發送者姓名和郵件地址。</li>
<li>保持活著(維護):每天自動訪問 Supabase 一次,防止因活動不足而導致免費專案暫停。</li>
<li>開發人員友好:包含用於自定義用戶角色和同步附加元數據的鉤子。</li>
</ul>

<p><strong>為什麼要使用此外掛?</strong></p>

<ul>
<li>與將整個資料庫同步的其他外掛不同,Edel Auth for Supabase 通過前端 Supabase API 進行用戶認證,僅在必要時創建 WordPress 用戶會話。</li>
<li>這使您的 WordPress 資料庫保持乾淨,站點運行速度快。</li>
</ul>

<p><strong>開發人員:</strong></p>

<ul>
<li>您可以使用以下鉤子在您的主題的 functions.php 中自定義外掛行為:</li>
<li>1. 基於提供者更改用戶角色</li>
<li>2. 同步顯示名稱</li>
<li>3. 記錄上次登錄時間</li>
</ul>

<p><strong>簡碼:</strong></p>

<ul>
<li>[eafs_login] - 顯示登入表單。</li>
<li>[eafs_register] - 顯示註冊表單。</li>
<li>[eafs_forgot_password] - 顯示重置密碼請求表單。</li>
<li>[eafs_update_password] - 顯示新密碼輸入表單(用於重置流程)。</li>
<li>[eafs_logout] - 顯示登出按鈕(僅對已登入的用戶可見)。</li>
</ul>

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Edel Auth for Supabase」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin integrates Supabase Authentication into your WordPress site, providing a secure, scalable, and modern membership system.
It allows you to completely separate “Site Administrators” (who use WordPress native auth) from “General Users” (who use Supabase auth).
This ensures your wp-admin remains secure while offering a seamless login experience for your customers.
Full Setup Guide
We have prepared a comprehensive guide to help you through the process, including Google Cloud Platform configuration and Supabase settings:

Edel auth for supabase guide


Key Features

Supabase Authentication: Support for Email/Password, Magic Links (Passwordless), and Social Login (Google).
Auto Synchronization: Users created in Supabase are automatically synced to WordPress as subscribers upon login.
Logout Synchronization: Logging out of WordPress automatically triggers a sign-out from Supabase to ensure session consistency.
User Deletion Sync: Deleting a user in WordPress automatically removes the corresponding user from Supabase (Requires Service Role Key).
Secure Admin Separation: Administrators are blocked from logging in via the frontend forms to prevent privilege escalation attacks.
Smart Password Reset: Automatically detects if a user registered via Google and guides them to use the “Log in with Google” button instead of sending a reset email.
Welcome Emails: Sends customizable “Welcome” emails directly from WordPress upon successful registration. Custom Sender Name and Email are supported.
Keep Alive (Maintenance): Automatically accesses Supabase once a day to prevent free projects from pausing due to inactivity.
Developer Friendly: Includes hooks for customizing user roles and syncing additional metadata.

Why use this plugin?
Unlike other plugins that sync the entire database, Edel Auth for Supabase authenticates users via the Supabase API on the frontend and only creates a WordPress user session when necessary.
This keeps your WordPress database clean and your site fast.
For Developers
You can customize the plugin behavior using the following hooks in your theme’s functions.php:

Filter Hook: eafs_user_role
This filter allows you to dynamically change the WordPress user role based on the Supabase provider (e.g., assigning a ‘contributor’ role to users who log in via Google).

Action Hook: eafs_after_user_sync
This action triggers after a user is successfully synced from Supabase to WordPress. It is ideal for updating additional user metadata, such as syncing the display name or recording the last login timestamp.

Shortcodes

[eafs_login] – Displays the login form.
[eafs_register] – Displays the registration form.
[eafs_forgot_password] – Displays the password reset request form.
[eafs_update_password] – Displays the new password entry form (for the reset flow).
[eafs_logout] – Displays a logout button (only visible to logged-in users).

延伸相關外掛

文章
Filter
Mastodon