Add support for CPE authentication

This commit is contained in:
Shweelan Samson authored and Zaid Abdulla committed 2019-06-05 00:17:36 -07:00
1 parent 53032c83f1
commit ae3779c484
5 files changed
+123 -11

No files matched your search

+3 -1
View File
@@ -134,7 +134,9 @@ export async function httpConnectionRequest(
if (res.statusCode === 200 || res.statusCode === 204) return;
if (res.statusCode === 401 && res.headers["www-authenticate"]) {
authHeader = auth.parseAuthHeader(res.headers["www-authenticate"]);
authHeader = auth.parseWwwAuthenticateHeader(
res.headers["www-authenticate"]
);
[username, password, authExp] = extractAuth(authExp, context, now, false);
} else {
throw new Error(