[WordPress] 外掛分享: AH JWT Auth

首頁外掛目錄 › AH JWT Auth
10+
安裝啟用
尚無評分
14 天前
最後更新
問題解決
WordPress 4.7+ PHP 8.0+ v2.4.0 上架:2021-04-21

內容簡介

AH JWT Auth 外掛允許透過包含在 HTTP 標頭中的 JSON Web Token (JWT) 登入 WordPress,並根據 JWT 中的聲明進行身份驗證及角色分配,提升安全性與便利性。

【主要功能】
• 支援使用 JSON Web Token 登入
• 根據 JWT 聲明自動創建用戶
• 驗證 JWT 的 aud 和 iss 聲明
• 支援 HS256 和 RS256 驗證方式
• 可設定自動用戶創建功能

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.4.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「AH JWT Auth」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin allows sign in to WordPress using a JSON Web Token (JWT) contained
in a HTTP Header that is added by a reverse proxy that sits in front of your
WordPress deployment.
Authentication and optionally role assignment is handled by claims contained in
the JWT.
If configured, the plugin also validates the JWT aud and iss claims against
the expected application audience and JWT issuer values.
Verification of the JWT is handled by either:

a shared secret for HS256 (as per RFC 7518 this must be at least 256-bits in
size)
a PEM encoded public key for RS256
retrieving a JSON Web Key Set (JWKS) from a configured URL (also for RS256)

During the login process if the user does not exist an account will be created
with a matching role from the JWT, unless automatic user creation has been
disabled in the plugin settings.
If the JWT did not contain a role claim then user is created with the role set
in the plugin settings (by default this is the subscriber role).
Automatic user creation is enabled by default for backwards compatibility. It
can be disabled when user provisioning should remain manual.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon