跳至内容
WordPress.org

China 简体中文

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

Plugin Directory

Casdoor – SSO, OAuth 2.0 & OIDC Login

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

Casdoor – SSO, OAuth 2.0 & OIDC Login

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

描述

Casdoor is an open-source identity and access management (IAM) and single sign-on (SSO) platform. With this plugin your users log in to WordPress with their Casdoor account, over OAuth 2.0 and OpenID Connect, the same way they log in to the other applications of your organization.

Behind Casdoor they can use passwords, MFA, passkeys, social logins (Google, GitHub, WeChat, Microsoft and many more), LDAP, SAML or any other provider Casdoor supports, without another plugin in WordPress.

Features

  • Replaces the WordPress login page with Casdoor, or adds a “Log in with Casdoor” button to it.
  • Creates the WordPress user on the first login, or only lets existing users in.
  • Links WordPress users to Casdoor users by the Casdoor user ID or a verified email, never by the user name alone.
  • Only lets in the users of one Casdoor organization, if you want.
  • Logs out of Casdoor together with WordPress.
  • Optional automatic login for visitors that are not logged in.
  • The [casdoor_login_button] shortcode for a login link anywhere.
  • Protects the login with the OAuth state, verifies TLS and asks Casdoor for the user, so a login can not be forged.

Users that only exist in WordPress, such as the first admin, can still use the WordPress login form at /wp-login.php?use_native_login=1.

Casdoor

  • Website: casdoor.ai
  • Source code of Casdoor: github.com/casdoor/casdoor
  • Source code of this plugin: github.com/casdoor/wordpress-casdoor-plugin

External services

This plugin connects to the Casdoor server that you set in Settings > Casdoor SSO. It is your own Casdoor (self-hosted or a Casdoor cloud instance), the plugin does not connect to any other service.

  • When a user logs in, the browser is sent to the login page of your Casdoor server.
  • After the login, the plugin sends the authorization code with the client ID and client secret of your Casdoor application to the server, and gets the access token and the user’s account (name, display name, email, organization) from it.
  • When a user logs out and “Log out of Casdoor too” is enabled, the browser is sent to the logout page of your Casdoor server with the user’s token.

Casdoor is open-source software under the Apache-2.0 license. The terms and privacy policy are those of whoever runs your Casdoor server; for Casdoor cloud they are at casdoor.com/terms and casdoor.com/privacy.

屏幕截图

The settings page (Settings > Casdoor SSO): connect your Casdoor application and choose how users log in.
The settings page (Settings > Casdoor SSO): connect your Casdoor application and choose how users log in.

安装

  1. Install and activate the plugin.
  2. In Casdoor, create an application (or use an existing one) and add https://your-site/?auth=casdoor to its “Redirect URLs”. To log out of Casdoor together with WordPress, add https://your-site/ too.
  3. In WordPress, go to Settings > Casdoor SSO, enter the URL of your Casdoor server and the client ID and client secret of the application, and check “Activate”.

常见问题

Do I need a Casdoor server?

Yes. Run your own with Docker (see the Casdoor docs) or use Casdoor cloud.

I am locked out after activating the plugin.

Use the WordPress login form at /wp-login.php?use_native_login=1.

Which WordPress user does a Casdoor user log in as?

The WordPress user that is linked to the Casdoor user, the one that logged in with this Casdoor user before, or the one with the same email when Casdoor has verified the email. Otherwise a new WordPress user is created, unless “Existing users only” is checked. The admins of the organization in the “Organization” setting become WordPress administrators.

Can I change where users go after logging in?

Yes, with the casdoor_user_redirect_url filter. The casdoor_user_login and casdoor_user_created actions run after a login and after a new user is created.

评价

此插件暂无评价。

贡献者及开发者

「Casdoor – SSO, OAuth 2.0 & OIDC Login」是开源软件。 以下人员对此插件做出了贡献。

贡献者
  • casdoor

帮助将「Casdoor – SSO, OAuth 2.0 & OIDC Login」翻译成简体中文。

对开发感兴趣吗?

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

更新日志

See the releases on GitHub.

额外信息

  • 版本 1.5.0
  • 最后更新:2 周前
  • 活跃安装数量 不到10
  • WordPress 版本 5.6 或更高版本
  • 已测试的最高版本为 7.1.3
  • PHP 版本 7.4 或更高版本
  • 语言
    English (US)
  • 标签
    loginoauthopenid connectSingle Sign-onsso
  • 高级视图

评级

尚未提交反馈。

您的评价

查看全部评论

贡献者

  • casdoor

支持

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

查看支持论坛

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

China 简体中文

The WordPress® trademark is the intellectual property of the WordPress Foundation.

  • 关注我们的 X(原 Twitter)账号
  • 访问我们的 Bluesky 账号
  • 关注我们的 Mastodon 账号
  • 访问我们的 Threads 账号
  • 访问我们的 Facebook 公共主页
  • 关注我们的 Instagram 账号
  • 关注我们的 LinkedIn 主页
  • 访问我们的 TikTok 账号
  • 访问我们的 YouTube 频道
  • 访问我们的 Tumblr 账号
代码如诗