[WordPress] 外掛分享: Twelve Legs Marketing SSO

首頁外掛目錄 › Twelve Legs Marketing SSO
10+
安裝啟用
尚無評分
21 天前
最後更新
問題解決
WordPress 6.8+ PHP 8.0+ v2.1 上架:2025-10-20

內容簡介

Twelve Legs Marketing SSO 是一款安全的單一登入外掛,能透過外部 SSO 應用程式的 RS256 JWT 令牌,實現無縫的身份驗證,並提供集中式的身份管理功能,增強網站的登入安全性。

【主要功能】
• 單一登入:代理商員工可從中央控制台登入管理的網站
• 即時用戶配置:自動創建用戶及角色分配
• JWT 驗證:完整的 RS256 簽名驗證與 JWKS 端點整合
• 角色管理:根據 JWT 聲明靈活分配角色
• 令牌過期:內建令牌過期及時鐘偏差容忍
• 電子郵件驗證:全面的電子郵件驗證與可選允許清單

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Twelve Legs Marketing SSO」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

TWL SSO is a secure single sign-on plugin for WordPress that enables seamless authentication using RS256 JWT tokens from an external SSO application.
This plugin provides login security features and is designed for allowing Twelve Legs Marketing centralized authentication management.
Key Features

Single Sign In: Agency employees can log into websites they manage from a central dashboard.
Just-in-Time User Provisioning: Automatic user creation and role assignment
JWT Validation: Full RS256 signature verification with JWKS endpoint integration
Key Rotation: Support key rotation through JWKS endpoint
Role Management: Flexible role assignment from JWT claims
Referrer Validation: Enhanced security through referrer validation
Audience Validation: Ensures tokens are valid for the specific WordPress site
Token Expiration: Built-in token expiration and clock skew tolerance
Email Validation: Comprehensive email validation with optional allowlist
Caching: JWKS caching for improved performance

Security Features

Referrer validation to prevent unauthorized access
JWT signature verification using public key cryptography
Issuer validation to ensure tokens come from trusted sources
Audience validation to prevent token reuse across sites
Token expiration validation with configurable leeway
Email format validation and filtering via hook

Use Cases

WordPress installations managed centrally by agency
Organization using Google for external identity provider

Usage
Authentication Flow

User clicks login link from SSO application (sso.twelvelegsmarketing.com or wpsso.twelvelegsmarketing.com)
SSO application redirects to WordPress with JWT token: /wp-login.php?action=twl_sso&token=JWT_TOKEN
Plugin validates the JWT token signature and claims
Plugin extracts user information from JWT claims
Plugin creates or retrieves WordPress user
Plugin assigns appropriate role based on JWT claims
User is logged into WordPress

JWT Claims
The plugin expects the following JWT claims:

email or sub: User’s email address
iss: Issuer (must match allowed issuers)
aud: Audience (must match WordPress site URL)
exp: Expiration time
nbf: Not before time (optional)
wp_role: WordPress role to assign (optional)
name: User’s display name (optional)
given_name: User’s first name (optional)
family_name: User’s last name (optional)

Configuration
The plugin automatically configures itself based on the WordPress environment:

Production: Allows https://sso.twelvelegsmarketing.com and https://wpsso.twelvelegsmarketing.com as issuers
Development/Staging: Also allows https://localhost:8443 as issuer

Customization
You can customize the plugin behavior using WordPress filters:

twl_sso_allow_email: Filter to control which email addresses are allowed
twl_sso_allowed_roles: Filter to control which roles can be assigned
twl_sso_allowed_issuers: Filter to control which issuers are allowed

Support
For support, please contact Twelve Legs Marketing at https://twelvelegsmarketing.com
Privacy Policy
This plugin does not collect, store, or transmit any personal data. All authentication is handled through secure JWT tokens from your configured SSO provider.

延伸相關外掛

文章
Filter
Mastodon