AuthenticationHeaderParser class
这是一个帮助程序类,用于分析支持的 HTTP 响应身份验证标头,以提取和返回可在基本授权流外部使用的标头质询值。
方法
| get |
此方法将 SHR nonce 值分析出 Authentication-Info 或 WWW-Authenticate 身份验证标头。 |
构造函数详细信息
AuthenticationHeaderParser(Record<string, string>)
new AuthenticationHeaderParser(headers: Record<string, string>)
参数
- headers
-
Record<string, string>
方法详细信息
getShrNonce()
此方法将 SHR nonce 值分析出 Authentication-Info 或 WWW-Authenticate 身份验证标头。
function getShrNonce(): string
返回
string