logging
This commit is contained in:
3
dist/index.js
vendored
3
dist/index.js
vendored
@@ -3129,6 +3129,8 @@ function parse_www_authenticate(www_authenticate) {
|
||||
parameters[key] = remaining.slice(1, close_index);
|
||||
remaining = remaining.slice(close_index + 1);
|
||||
|
||||
console.log({ key, value: parameters[key] });
|
||||
|
||||
if (remaining && remaining[0] !== ',') {
|
||||
console.log({ remaining });
|
||||
throw new Error('invalid www-authenticate header (expected comma after closing quote)');
|
||||
@@ -3151,6 +3153,7 @@ function parse_www_authenticate(www_authenticate) {
|
||||
}
|
||||
|
||||
const { realm, service, scope } = parameters;
|
||||
console.log({ parameters });
|
||||
|
||||
if (! realm || ! service || ! scope) {
|
||||
throw new Error('invalid www-authenticate header (missing "realm", "service", or "scope")');
|
||||
|
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user