Add support for CPE authentication
This commit is contained in:
1 parent
53032c83f1
commit
ae3779c484
5 files changed
+123
-11
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user