Descrizione
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”]
}
}
Installazione
- Upload the downloaded plugin folder to the
/wp-content/plugins/
directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- In the administration dashboard, go to “Settings” > “Single Sign On” and configure the JWT settings.
FAQ
- 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
Recensioni
Contributi e sviluppo
“JWT Single Sign On” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.
CollaboratoriTraduci “JWT Single Sign On” nella tua lingua.
Ti interessa lo sviluppo?
Esplora il Codice segui il Repository SVN iscriviti al Log delle Modifiche. Puoi farlo tramite RSS con un lettore di feed.
Changelog (registro delle modifiche)
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.