Chuyển tới nội dung
  • Đăng nhập
  • Đăng ký
WordPress.org

tiếng Việt

  • Giao diện
  • Plugin
  • News
  • Hỗ trợ
    • Documentation
    • Diễn đàn
  • Giới thiệu
  • Meetup
  • Team
  • Get WordPress
Get WordPress

Plugin

  • Mục yêu thích
  • Phiên bản Beta
  • Lập trình viên

Plugin này chưa được cập nhật với 3 phiên bản mới nhất của WordPress. Nó có thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress mới nhất.

Tải về

JWT Single Sign On

Bởi seschi98
  • Chi tiết
  • Đánh giá
  • Cài đặt
  • Development
Hỗ trợ

Mô tả

This plugin allows signing in users via JSON Web Token (JWT) in WordPress. It is used to allow users from another website/service/etc. to securely use their credentials for the WordPress site.
Sample use case: There is an existing user database (e.g. in an intranet environment) and the users should be able to login to an external site that is powered by wordpress, without having to remember another password. This mechanism is also called Single Sign On (SSO).
Please note that the user information and role mappings are updated each time the user logs in via SSO. If you do not want to sync the roles from your existing system to wordpress, you can disable the functionality via the settings page.

JWT Server

You will need to implement an endpoint on your website/app that has access to the logged
in user (via login form or Kerberos-like authentication etc). That endpoint needs to create
and sign a JWT with the HS256 algorithm and the below described information in the payload.
It then has to redirect the user back to the WordPress site https://example.org/?auth=jwt&code={jwt}
where {jwt} is the signed JWT as string representation.

{
“iat”: 1516239022,
“iss”: “issuer_name”,
“user_info”: {
“user_login”: “johndoe”,
“user_name”: “John Doe”,
“first_name”: “John”,
“last_name”: “Doe”,
“user_email”: “johndoe@example.org”,
“user_roles”: [“role1”]
}
}

Cài đặt

  1. Upload the downloaded plugin folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. In the administration dashboard, go to “Settings” > “Single Sign On” and configure the JWT settings.

Hỏi đáp

Where can I configure the plugin?

In the administration dashboard, go to “Settings” > “Single Sign On”.

Can I request a feature?

Yes! You can create an issue on GitHub. The repository can be found under https://github.com/seschi98/wordpress-jwt-single-sign-on

Đánh giá

Great start for new JWT plugin

dragonword 3 Tháng Sáu, 2019
Using on my site and excited with it so far. It does what it says on the tin, although there are a few drawbacks: - When activated, no users are able to log out - Documentation lists auth url parameter as 'jwt', but it should be 'sso' - Would be nice if the wordpress login page could automatically redirect to SSO page, or maybe just have a 'continue to SSO' button with the default form hidden until you click 'I am an admin' or something else to use the native auth. Current display means people will try logging in and then click the SSO button, which is a bit confusing. - It is keyed off username AND e-mail. Email is not a great thing to key off since it may change in future if user changes their email in either SSO site or wordpress site. Also, in my case, users can have multiple accounts with identical e-mail. So an option to only key off username only (which cannot be changed in stock wordpress) would be ideal. That said, having JWT auth is very useful and am much appreciative for this plugin! I am really excited to follow this plugin's development, and hope it continues to improve in future too 🙂
Đọc tất cả 1 đánh giá

Người đóng góp & Lập trình viên

“JWT Single Sign On” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp
  • seschi98

Dịch “JWT Single Sign On” sang ngôn ngữ của bạn.

Muốn tham gia phát triển?

Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.

Nhật ký thay đổi

1.2.0

  • Adding some validation so that default values for new plugin settings are automatically populated when a plugin update is performed.
  • Adding the possibility to disable the SSO button on the login page.

1.1.1

  • Fixing the plugin name in readme.txt so it is compliant to the WordPress specification

1.1.0

  • Updating readme file to provide more information
  • Updating admin settings page to give more information about the setup process
  • Removed dependecy for jQueryUI CDN
  • Adding a proper readme.txt file for WordPress Plugin Directory
  • Adding the ability to control whether the clientId and site’s SSO address should be appended to the JWT Server URL
  • Adding the ability to disable role synchronisation

1.0.0

  • Initial Proof-Of-Concept for this plugin.

Meta

  • Phiên bản: 1.2.0
  • Lần cập nhật gần nhất: 4 năm trước
  • Lượt kích hoạt: 20+
  • Phiên bản WordPress: 3.0.1 hoặc cao hơn
  • Đã kiểm tra với: 5.1.15
  • Phiên bản PHP: 5.2 hoặc cao hơn
  • Ngôn ngữ:
    English (US)
  • Tag:
    jwtloginSingle Sign-onsso
  • Nâng cao

Đánh giá

Xem tất cả
  • 5 sao 0
  • 4 sao 1
  • 3 sao 0
  • 2 sao 0
  • 1 sao 0
Log in to submit a review.

Những người đóng góp

  • seschi98

Hỗ trợ

Các lỗi đã xử lý trong vòng hai tháng gần đây:

0 trên 1

Xem diễn đàn hỗ trợ

  • About
  • News
  • Hosting
  • Donate
  • Swag
  • Documentation
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • Patterns
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
WordPress.org
WordPress.org

tiếng Việt

  • Visit our Facebook page
  • Visit our Twitter account
  • Visit our Instagram account
  • Visit our LinkedIn account
Viết code như làm thơ.