开发者 | andrewheberle |
---|---|
更新时间 | 2023年12月21日 12:35 |
捐献地址: | 去捐款 |
PHP版本: | 7.0 及以上 |
WordPress版本: | 6.3.2 |
版权: | GPLv3 or later |
版权网址: | 版权信息 |
By default the plugin looks for the JWT in the Authorization
header as follows:
Authorization: Bearer
However the token may be retrieved from a configurable HTTP header, for example integration with Cloudflare Access would use
the Cf-Access-Jwt-Assertion
header.
The JWT must contain at least an email
claim and may also contain a role
claim:
{
"email": "admin@example.com",
"role": "admin"
}
Currently only the HS256 and RS256 alorithms are supported.