跳至内容
WordPress.org

China 简体中文

  • 主题
  • 插件
  • 新闻
    • 文档
    • 论坛
  • 关于
  • 获取 WordPress
获取 WordPress
WordPress.org

Plugin Directory

WebPlatform Social Login

  • 提交插件
  • 我的收藏
  • 登录
  • 提交插件
  • 我的收藏
  • 登录

WebPlatform Social Login

作者:WebPlatform
下载
  • 详情
  • 评价
  • 安装
  • 开发进展
支持

描述

WebPlatform Social Login adds secure social sign-in buttons to WordPress.

Features:

  • Verifies Google ID token signatures using Google’s published public keys.
  • Supports Facebook OAuth, LinkedIn OpenID Connect and Microsoft OpenID Connect.
  • Supports Sign in with Apple, including dynamic ES256 client assertions.
  • Validates token audience, issuer, expiry, email verification and nonce.
  • Protects login requests with short-lived, HttpOnly state cookies.
  • Encrypts provider secrets and Apple private keys at rest using WordPress authentication salts.
  • Connects existing users by verified email.
  • Optionally creates new WordPress users.
  • Displays on WooCommerce login and registration forms.
  • Displays on standard WordPress login and registration forms.
  • Optionally offers Google One Tap to logged-out visitors using the Google account active in their browser.
  • Includes [webplatform_social_login] for custom pages.
  • Supports local post-login redirects and optional email-domain restrictions.
  • Integrates with WordPress personal-data export and erasure tools.

No Google Client Secret is stored or required. Other providers require their standard application credentials.

External services

This plugin connects to external identity services only when the site owner enables them. When Google One Tap is enabled, Google Identity Services may be loaded for logged-out visitors before they choose to sign in.

  • The browser downloads the Google Identity Services library from https://accounts.google.com/gsi/client when a login button is displayed. The site’s OAuth Client ID and standard browser request information are sent to Google.
  • After the visitor chooses a Google account, Google returns a signed identity token to the website. The token contains the account identifier and basic profile fields approved by the visitor.
  • The server periodically downloads public signing keys from https://www.googleapis.com/oauth2/v3/certs to verify tokens. No visitor identity data is sent when public keys are downloaded.

This service is provided by Google under the Google APIs Terms of Service and Google Privacy Policy.

For enabled OAuth providers, the visitor is sent to the provider’s authorization page. The plugin sends the application Client ID, callback URL, requested basic-profile/email scopes, and a random state value. The provider sends an authorization code back to the website. The server exchanges that code and requests the visitor’s identifier, name, verified email and optional profile image.

  • Facebook endpoints use facebook.com and graph.facebook.com. Meta Platform Terms and Meta Privacy Policy.
  • LinkedIn endpoints use linkedin.com and api.linkedin.com. LinkedIn API Terms and LinkedIn Privacy Policy.
  • Microsoft endpoints use login.microsoftonline.com and graph.microsoft.com. Microsoft APIs Terms and Microsoft Privacy Statement.
  • Apple endpoints use appleid.apple.com. The plugin also downloads Apple’s public signing keys to validate ID tokens. Sign in with Apple terms and Apple Privacy Policy.

Privacy

When a visitor uses a social provider, that provider returns an account identifier and basic profile fields such as name, verified email address and profile image. The plugin stores the provider account identifier and profile image URL in WordPress user metadata. WordPress core stores the user’s name and email as part of the user account.

The browser loads Google’s Identity Services JavaScript from accounts.google.com when Google login is configured. Other providers are contacted only when their button is selected. Site owners should disclose enabled external services in their privacy policy and obtain any consent required in their jurisdiction.

Plugin metadata is available through WordPress personal-data export and erasure tools.

安装

  1. Upload the webplatform-social-login folder to /wp-content/plugins/.
  2. Activate WebPlatform Social Login.
  3. In Google Cloud, create an OAuth 2.0 Client ID of type Web application.
  4. Add your HTTPS website origin under Authorized JavaScript origins.
  5. Open Settings > WebPlatform Social Login and enter the Client ID.
  6. Add [webplatform_social_login] to any custom login page, or enable WooCommerce placement.

For another provider, create its web application, copy the exact callback URL displayed in the plugin settings, enter the credentials, and enable the provider.

The settings screen includes step-by-step examples for every provider, including the current site’s exact origin, domain, callback URLs, required products and requested scopes.

常见问题

Is a Google Client Secret required?

No. This plugin uses the Google Identity Services ID-token flow and validates signed tokens on the server.

Does the plugin create users automatically?

Only when account creation is enabled in the plugin and the provider email is verified.

Can login be limited to an organization?

Yes. Enter one or more comma-separated email domains in the settings.

评价

此插件暂无评价。

贡献者及开发者

「WebPlatform Social Login」是开源软件。 以下人员对此插件做出了贡献。

贡献者
  • WebPlatform

帮助将「WebPlatform Social Login」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志。

更新日志

1.4.4

  • Renamed the plugin to WebPlatform Social Login.
  • Restricted social-login account creation to the low-privilege Customer or Subscriber role.

1.4.3

  • Added explicit external-script versioning and documented the required provider-identity lookup.

1.4.2

  • Resolved WordPress Plugin Check internationalization, sanitization and compatibility findings.

1.4.1

  • Prevented duplicate Google buttons and repeated front-end configuration.

1.4.0

  • Added optional Google One Tap sign-in and registration prompts for logged-out visitors.
  • Preserved explicit Facebook, LinkedIn, Microsoft and Apple authorization buttons.

1.3.0

  • Added standard WordPress login and registration placement.
  • Suppressed duplicate output from the obsolete WordPress Social Login plugin.
  • Added migration guidance when the replaced plugin remains active.

1.2.0

  • Added site-specific configuration examples for every provider.
  • Added provider console links, required products, scopes, domains and callback instructions.

1.1.0

  • Added Facebook OAuth login.
  • Added LinkedIn OpenID Connect login.
  • Added Microsoft OpenID Connect login.
  • Added Sign in with Apple.
  • Added encrypted credential storage and provider-specific callback settings.

1.0.0

  • Initial release.

额外信息

  • 版本 1.4.4
  • 最后更新:2 月前
  • 活跃安装数量 10+
  • WordPress 版本 6.5 或更高版本
  • 已测试的最高版本为 7.0.5
  • PHP 版本 8.0 或更高版本
  • 语言
    English (US)
  • 标签
    Facebook loginGoogle Loginlinkedin loginsocial loginwoocommerce login
  • 高级视图

评级

尚未提交反馈。

您的评价

查看全部评论

贡献者

  • WebPlatform

支持

有话要说吗?是否需要帮助?

查看支持论坛

  • 关于
  • 新闻
  • 主机
  • 隐私
  • 陈列窗
  • 主题
  • 插件
  • 区块样板
  • 学习
  • 支持
  • 开发者
  • WordPress.tv ↗︎
  • 参与
  • 活动
  • 捐赠 ↗
  • 周边商品 ↗
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

China 简体中文

  • 关注我们的 X(原 Twitter)账号
  • 访问我们的 Bluesky 账号
  • 关注我们的 Mastodon 账号
  • 访问我们的 Threads 账号
  • 访问我们的 Facebook 公共主页
  • 关注我们的 Instagram 账号
  • 关注我们的 LinkedIn 主页
  • 访问我们的 TikTok 账号
  • 访问我们的 YouTube 频道
  • 访问我们的 Tumblr 账号
代码如诗
The WordPress® trademark is the intellectual property of the WordPress Foundation.