Skip to content

Commit 1297946

Browse files
committed
Merge branch 'feature/temp-develop' into develop
2 parents 124d192 + a6bcd85 commit 1297946

File tree

7 files changed

+7258
-1376
lines changed

7 files changed

+7258
-1376
lines changed

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
# Each line is a file pattern followed by one or more owners.
33

44
# These owners will be the default owners for everything in the repo.
5-
* @anu3990 @billfarber @rjrudin @stevebio
5+
* @billfarber @rjrudin @stevebio
66

lib/www-authenticate-patched/md5.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,15 @@
77
*/
88

99
/*
10+
<<<<<<< HEAD
1011
* Copyright (c) 2015-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
1112
*/
1213
const crypto= require('crypto');
14+
=======
15+
* Copyright © 2015-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
16+
*/
17+
var crypto= require('crypto');
18+
>>>>>>> feature/temp-develop
1319

1420
function md5(s) {
1521
return crypto.createHash('md5').update(s).digest('hex');

lib/www-authenticate-patched/parsers.js

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,57 @@
11
/*
2+
<<<<<<< HEAD
23
* Copyright (c) 2015-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
34
*/
45

56
/*
7+
=======
8+
>>>>>>> feature/temp-develop
69
* www-authenticate
710
* https://github.com/randymized/www-authenticate
811
*
912
* Copyright (c) 2013 Randy McLaughlin
1013
* Licensed under the MIT license.
1114
*/
1215

16+
<<<<<<< HEAD
1317
const ParseAuth= /(\w+)\s+(.*)/ // -> scheme, params
18+
=======
19+
/*
20+
* Copyright © 2015-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
21+
*/
22+
var ParseAuth= /(\w+)\s+(.*)/ // -> scheme, params
23+
>>>>>>> feature/temp-develop
1424
, Separators= /([",=])/
1525
;
1626

1727
function parse_params(header) {
1828
// This parser will definitely fail if there is more than one challenge
29+
<<<<<<< HEAD
1930
let tok, _i, _len, key, value;
2031
let state= 0; //0: token,
2132
const m= header.split(Separators);
2233
for (_i = 0, _len = m.length; _i < _len; _i++) {
2334
tok = m[_i];
2435
if (!tok.length) {continue;}
36+
=======
37+
var tok, _i, _len, key, value;
38+
var state= 0; //0: token,
39+
var m= header.split(Separators)
40+
for (_i = 0, _len = m.length; _i < _len; _i++) {
41+
tok = m[_i];
42+
if (!tok.length) continue;
43+
>>>>>>> feature/temp-develop
2544
switch (state) {
2645
case 0: // token
2746
key= tok.trim();
2847
state= 1; // expect equals
2948
continue;
3049
case 1: // expect equals
50+
<<<<<<< HEAD
3151
if ('=' != tok) {return 'Equal sign was expected after '+key;}
52+
=======
53+
if ('=' != tok) return 'Equal sign was expected after '+key;
54+
>>>>>>> feature/temp-develop
3255
state= 2;
3356
continue;
3457
case 2: // expect value
@@ -68,7 +91,11 @@ function parse_params(header) {
6891
return 'Unexpected token ('+tok+') after '+value+'"';
6992
}
7093
case 9: // expect commma
94+
<<<<<<< HEAD
7195
if (',' != tok) {return 'Comma expected after '+value;}
96+
=======
97+
if (',' != tok) return 'Comma expected after '+value;
98+
>>>>>>> feature/temp-develop
7299
state= 0;
73100
continue;
74101
}
@@ -87,10 +114,17 @@ function parse_params(header) {
87114

88115
function Parse_WWW_Authenticate(to_parse)
89116
{
117+
<<<<<<< HEAD
90118
const m= to_parse.match(ParseAuth);
91119
this.scheme= m[1];
92120
this.parms= {};
93121
const err= this.parse_params(m[2]);
122+
=======
123+
var m= to_parse.match(ParseAuth);
124+
this.scheme= m[1];
125+
this.parms= {};
126+
var err= this.parse_params(m[2]);
127+
>>>>>>> feature/temp-develop
94128
if (err) {
95129
this.scheme= '';
96130
this.parms= {};
@@ -102,7 +136,11 @@ function Parse_Authentication_Info(to_parse)
102136
{
103137
this.scheme= 'Digest';
104138
this.parms= {};
139+
<<<<<<< HEAD
105140
const err= this.parse_params(to_parse);
141+
=======
142+
var err= this.parse_params(to_parse);
143+
>>>>>>> feature/temp-develop
106144
if (err) {
107145
this.scheme= '';
108146
this.parms= {};

lib/www-authenticate-patched/user-credentials.js

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,27 @@
11
/*
2+
<<<<<<< HEAD
23
* Copyright (c) 2015-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
34
*/
45

56
/*
7+
=======
8+
>>>>>>> feature/temp-develop
69
* www-authenticate
710
* https://github.com/randymized/www-authenticate
811
*
912
* Copyright (c) 2013 Randy McLaughlin
1013
* Licensed under the MIT license.
1114
*/
1215

16+
<<<<<<< HEAD
1317

1418
const md5= require('./md5');
19+
=======
20+
/*
21+
* Copyright © 2015-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
22+
*/
23+
var md5= require('./md5');
24+
>>>>>>> feature/temp-develop
1525

1626
/*
1727
* Hide the password. Uses the password to form authorization strings,
@@ -25,6 +35,7 @@ function user_credentials(username,password,options) {
2535
return username;
2636
}
2737

38+
<<<<<<< HEAD
2839
const basic_string= options && options.hide_basic ?
2940
''
3041
:
@@ -33,25 +44,48 @@ function user_credentials(username,password,options) {
3344
:
3445
Buffer.from(username+':'+password, 'ascii').toString('base64')
3546
);
47+
=======
48+
var basic_string= options && options.hide_basic ?
49+
''
50+
:
51+
(!password && password !== '' ?
52+
Buffer.from(username, "ascii").toString("base64")
53+
:
54+
Buffer.from(username+':'+password, "ascii").toString("base64")
55+
)
56+
>>>>>>> feature/temp-develop
3657
function Credentials()
3758
{
3859
this.username= username;
3960
}
4061
Credentials.prototype.basic= function()
4162
{
4263
return basic_string;
64+
<<<<<<< HEAD
4365
};
66+
=======
67+
}
68+
>>>>>>> feature/temp-develop
4469
Credentials.prototype.digest= function(realm)
4570
{
4671
return !password && password !== '' ?
4772
md5(username+':'+realm)
4873
:
74+
<<<<<<< HEAD
4975
md5(username+':'+realm+':'+password);
5076
};
5177
Credentials.prototype.is_user_credentials= function()
5278
{
5379
return true;
5480
};
81+
=======
82+
md5(username+':'+realm+':'+password)
83+
}
84+
Credentials.prototype.is_user_credentials= function()
85+
{
86+
return true;
87+
}
88+
>>>>>>> feature/temp-develop
5589

5690
return new Credentials;
5791
}

0 commit comments

Comments
 (0)