AuthenticationHeaderParser class
This is a helper class that parses supported HTTP response authentication headers to extract and return header challenge values that can be used outside the basic authorization flows.
Constructors
Authentication |
Methods
get |
This method parses the SHR nonce value out of either the Authentication-Info or WWW-Authenticate authentication headers. |
Constructor Details
AuthenticationHeaderParser(Record<string, string>)
new AuthenticationHeaderParser(headers: Record<string, string>)
Parameters
- headers
-
Record<string, string>
Method Details
getShrNonce()
This method parses the SHR nonce value out of either the Authentication-Info or WWW-Authenticate authentication headers.
function getShrNonce(): string
Returns
string