Linux 软件免费装
Banner图

Wordpress JWT Authentication

开发者 glena
auth0
更新时间 2017年11月28日 22:16
PHP版本: 4.0 及以上
WordPress版本: 4.1
版权: MIT
版权网址: 版权信息

标签

login token authentication api jwt oauth

下载

详情介绍:

DEPRECATED - This library is no longer maintained/supported. This plugin targets to add a easy way to authenticate your APIs using JWT. Also, it provides a basic way to match the users and allow you to extend base on your needs easily with a filter. How it works This plugin will check the headers of the requests and if there is an Authorization header will try to log in a user that matches. So it is as easy to check for the current user to authenticate users in your own API. Also, it provides support for the following plugins:

安装:

  1. Install from the WordPress Store or upload the entire wp-jwt-aith folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Access to the plugin settings and configure the keys and how should it match the users.
  4. Aud: represents the client id which the JWT was sent.
  5. Secret: used to verify the JWT signature
  6. Base64 Secret Encoded: it must be active if the secret is base64 encoded and needs to be decoded before checkig the signature.
  7. User Property: is the property which much match with the JWT attribute to determine the user.
  8. JWT Attribute: should match the User Property to determine the user.
or extend it implementing a filter: add_filter( 'wp_jwt_auth_get_user', 'get_user',10); function get_user($jwt) { ... } To see an example, check the UsersRepo (https://github.com/auth0/wp-jwt-auth/blob/master/lib/JWT_AUTH_UsersRepo.php).