lemonldap-ng-handler 0.7.0 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +89 -64
- package/README.md +92 -76
- package/lib/handlerDevOps.d.ts +5 -5
- package/lib/handlerDevOpsST.d.ts +5 -5
- package/lib/handlerMain.d.ts +4 -4
- package/lib/handlerServiceToken.d.ts +3 -3
- package/lib/index.d.ts +5 -5
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +122 -120
- package/lib/index.mjs.map +1 -1
- package/lib/init.d.ts +7 -7
- package/lib/tsv.d.ts +2 -2
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,122 +1,147 @@
|
|
|
1
|
-
Changelog
|
|
2
|
-
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.7.0
|
|
4
|
+
|
|
5
|
+
- Update dependencies
|
|
3
6
|
|
|
4
7
|
## 0.6.2
|
|
5
|
-
|
|
8
|
+
|
|
9
|
+
- Add missing types fields
|
|
6
10
|
|
|
7
11
|
## 0.6.1
|
|
8
12
|
|
|
9
|
-
|
|
10
|
-
|
|
13
|
+
- More tests
|
|
14
|
+
- Fix error codes
|
|
11
15
|
|
|
12
16
|
## 0.6.0
|
|
13
17
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
- Rewrite to Typescript and then find and fix a lot of bugs
|
|
19
|
+
- Fix SQL support for Node.js >= 14
|
|
20
|
+
- BREACKING CHANGES:
|
|
21
|
+
- SQL stack changed: [perl-dbi](./packages/perl-dbi/README.md) is now based
|
|
22
|
+
on [Knex](https://www.npmjs.com/package/knex). If you are using a SQL
|
|
23
|
+
database, you have to install the related module:
|
|
24
|
+
- PostgreSQL: [pg](https://www.npmjs.com/package/pg)
|
|
25
|
+
- MySQL: [mysql](https://www.npmjs.com/package/mysql)
|
|
26
|
+
- Oracle: [oracledb](https://www.npmjs.com/package/oracledb)
|
|
23
27
|
|
|
24
28
|
## 0.5.5
|
|
25
29
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
30
|
+
- LDAP: custom CA support
|
|
31
|
+
- Build deps: add missing iconv, ipaddr.js, random-bytes
|
|
32
|
+
- Fix URL normalizaion
|
|
29
33
|
|
|
30
34
|
Thanks to Samuel Martin Moro to have fixed this points
|
|
31
35
|
|
|
32
36
|
## 0.5.4
|
|
33
|
-
|
|
37
|
+
|
|
38
|
+
- Switch to lerna
|
|
34
39
|
|
|
35
40
|
## 0.5.2
|
|
36
|
-
|
|
41
|
+
|
|
42
|
+
- Better URL normalization (see CVE-2020-24660)
|
|
37
43
|
|
|
38
44
|
## 0.5.1
|
|
39
|
-
|
|
45
|
+
|
|
46
|
+
- Don't fail if configuration is not ready but return 503 (#4)
|
|
40
47
|
|
|
41
48
|
## 0.5.0
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
49
|
+
|
|
50
|
+
- BREAKING CHANGE:
|
|
51
|
+
- Cryptographic functions are now compatible with LLNG ≥ 2.0.5 but then
|
|
52
|
+
may be incompatible with previous versions.
|
|
45
53
|
|
|
46
54
|
## 0.4.0
|
|
47
|
-
|
|
55
|
+
|
|
56
|
+
- Reorganize and rename main package to "lemonldap-ng-handler"
|
|
48
57
|
|
|
49
58
|
## 0.3.0 - 2018-07-01
|
|
50
|
-
|
|
51
|
-
|
|
59
|
+
|
|
60
|
+
- Add UWSGI logger
|
|
61
|
+
- Fix "skip" management (#1)
|
|
52
62
|
|
|
53
63
|
## 0.2.9 - 2018-06-07
|
|
54
|
-
|
|
55
|
-
|
|
64
|
+
|
|
65
|
+
- Bug: bad host header in DevOps rules.json query
|
|
66
|
+
- Add DevOpsST handler
|
|
56
67
|
|
|
57
68
|
## 0.2.8 - 2018-05-29
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
69
|
+
|
|
70
|
+
- Bug: bad conf order in fileConf when cfgNum>9
|
|
71
|
+
- Change bug database to OW2 GitLab
|
|
72
|
+
- Add YAMLFile configuration backend
|
|
73
|
+
- Add LDAP configuration backend
|
|
74
|
+
- Add LDAP session backend
|
|
63
75
|
|
|
64
76
|
## 0.2.7 - 2018-05-24
|
|
65
|
-
|
|
77
|
+
|
|
78
|
+
- Add MongoDB configuration backend
|
|
66
79
|
|
|
67
80
|
## 0.2.6 - 2018-05-21
|
|
68
|
-
|
|
81
|
+
|
|
82
|
+
- Propagate vm in DevOps handler
|
|
69
83
|
|
|
70
84
|
## 0.2.5 - 2018-05-21
|
|
71
|
-
|
|
72
|
-
|
|
85
|
+
|
|
86
|
+
- Fix bug in rules compilation
|
|
87
|
+
- Replace `eval` calls by execution in Node.js vm
|
|
73
88
|
|
|
74
89
|
## 0.2.4 - 2018-05-20
|
|
75
|
-
|
|
76
|
-
|
|
90
|
+
|
|
91
|
+
- Fix bug when old session exists (fileSession)
|
|
92
|
+
- Add missing header Lm-Remote-User
|
|
77
93
|
|
|
78
94
|
## 0.2.3 - 2018-05-17
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
95
|
+
|
|
96
|
+
- Fix bug in DevOps handler when RULES_URL is used
|
|
97
|
+
- Fix bug in REST configuration backend
|
|
98
|
+
- replace is-in-subnet dependency by ipaddr.js (more easy to build and
|
|
99
|
+
available in Debian)
|
|
100
|
+
- Add REST sessions backend
|
|
84
101
|
|
|
85
102
|
## 0.2.2 - 2018-05-13
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
103
|
+
|
|
104
|
+
- Use mocha for test
|
|
105
|
+
- Evaluate Perl hash in lemonldap-ng.ini file
|
|
106
|
+
- Add Redis session backend
|
|
107
|
+
- Add all [extended function](https://lemonldap-ng.org/documentation/2.0/extendedfunctions)
|
|
90
108
|
|
|
91
109
|
## 0.2.1 - 2018-05-09
|
|
92
|
-
|
|
93
|
-
|
|
110
|
+
|
|
111
|
+
- Add logger system (Std and Syslog)
|
|
112
|
+
- Fix inheritance error in DevOps handler
|
|
94
113
|
|
|
95
114
|
## 0.2.0 - 2018-05-03
|
|
96
|
-
|
|
97
|
-
|
|
115
|
+
|
|
116
|
+
- Move nodedbi to optionalDependencies
|
|
117
|
+
- Use SPDX license name
|
|
98
118
|
|
|
99
119
|
## 0.1.9 - 2018-05-02
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
120
|
+
|
|
121
|
+
- Add Apache::Session::Browseable::{PgHstore,PgJSON} support
|
|
122
|
+
- Add REST conf backend
|
|
123
|
+
- Switch to nodedbi (instead of node-dbi) for DB access
|
|
103
124
|
|
|
104
125
|
## 0.1.8 - 2018-04-23
|
|
105
|
-
|
|
106
|
-
|
|
126
|
+
|
|
127
|
+
- Fix "Unable to give options to nginxServer"
|
|
128
|
+
- Add RDBI support
|
|
107
129
|
|
|
108
130
|
## 0.1.7 - 2018-04-22
|
|
109
|
-
|
|
131
|
+
|
|
132
|
+
- Missing compilation for ServiceToken
|
|
110
133
|
|
|
111
134
|
## 0.1.6 - 2018-04-22
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
135
|
+
|
|
136
|
+
- Crypto lib
|
|
137
|
+
- Handlers:
|
|
138
|
+
- ServiceToken
|
|
139
|
+
- DevOps
|
|
116
140
|
|
|
117
141
|
## 0.1.5 - 2018-04-16
|
|
118
|
-
|
|
142
|
+
|
|
143
|
+
- Update doc links
|
|
119
144
|
|
|
120
145
|
## 0.1.4 - 2018-04-16
|
|
121
146
|
|
|
122
|
-
|
|
147
|
+
- Add Nginx authorization server support
|
package/README.md
CHANGED
|
@@ -5,6 +5,7 @@ Beta [Lemonldap::NG](https://lemonldap-ng.org) handler for node.js
|
|
|
5
5
|
## SYNOPSIS
|
|
6
6
|
|
|
7
7
|
### lemonldap-ng.ini
|
|
8
|
+
|
|
8
9
|
```ini
|
|
9
10
|
...
|
|
10
11
|
[node-handler]
|
|
@@ -13,51 +14,54 @@ nodeVhosts = test.example.com, test2.example.com
|
|
|
13
14
|
```
|
|
14
15
|
|
|
15
16
|
### Express app
|
|
17
|
+
|
|
16
18
|
```javascript
|
|
17
19
|
// Variables
|
|
18
|
-
var express = require(
|
|
20
|
+
var express = require("express");
|
|
19
21
|
var app = express();
|
|
20
|
-
var handler = require(
|
|
22
|
+
var handler = require("lemonldap-ng-handler");
|
|
21
23
|
|
|
22
24
|
// initialize handler (optional args)
|
|
23
25
|
handler.init({
|
|
24
26
|
configStorage: {
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
+
confFile: "test/lemonldap-ng.ini",
|
|
28
|
+
},
|
|
27
29
|
});
|
|
28
30
|
|
|
29
31
|
// and load it
|
|
30
32
|
app.use(handler.run);
|
|
31
33
|
|
|
32
34
|
// Then simply use your express app
|
|
33
|
-
app.get(
|
|
34
|
-
return res.send(
|
|
35
|
+
app.get("/", function (req, res) {
|
|
36
|
+
return res.send("Hello " + req.headers["Auth-User"] + " !");
|
|
35
37
|
});
|
|
36
|
-
app.listen(3000, function() {
|
|
37
|
-
return console.log(
|
|
38
|
+
app.listen(3000, function () {
|
|
39
|
+
return console.log("Example app listening on port 3000!");
|
|
38
40
|
});
|
|
39
41
|
```
|
|
40
42
|
|
|
41
43
|
### Nginx authorization server
|
|
42
44
|
|
|
43
45
|
FastCGI server:
|
|
46
|
+
|
|
44
47
|
```javascript
|
|
45
|
-
var handler = require(
|
|
48
|
+
var handler = require("lemonldap-ng-handler");
|
|
46
49
|
|
|
47
50
|
handler.init({
|
|
48
51
|
configStorage: {
|
|
49
|
-
|
|
50
|
-
}
|
|
52
|
+
confFile: "/path/to/lemonldap-ng.ini",
|
|
53
|
+
},
|
|
51
54
|
});
|
|
52
55
|
|
|
53
56
|
handler.nginxServer({
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
+
mode: "fcgi", // or "http", default: fcgi
|
|
58
|
+
port: 9090, // default value
|
|
59
|
+
ip: "localhost", // default value
|
|
57
60
|
});
|
|
58
61
|
```
|
|
59
62
|
|
|
60
63
|
Nginx configuration. For more, see [Nginx configuration on LLNG website](https://lemonldap-ng.org/documentation/latest/configvhost#nginx_configuration)
|
|
64
|
+
|
|
61
65
|
```nginx
|
|
62
66
|
server {
|
|
63
67
|
listen 19876;
|
|
@@ -106,14 +110,15 @@ associating a regular expression and a rule. Regular expression is applied on
|
|
|
106
110
|
the requested URL and the rule calculates if the user is authorized.
|
|
107
111
|
|
|
108
112
|
LLNG is designed in 3 kinds of elements:
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
113
|
+
|
|
114
|
+
- a portal
|
|
115
|
+
- a manager
|
|
116
|
+
- some handlers for Apache, [Plack family](https://plackperl.org), Node.js
|
|
117
|
+
- some FastCGI servers to provide Nginx handler or
|
|
118
|
+
[SSOaaS](https://lemonldap-ng.org/documentation/2.0/ssoaas):
|
|
119
|
+
- pure Perl (default)
|
|
120
|
+
- uWSGI _(Perl via uwsgi-psgi plugin)_
|
|
121
|
+
- this Node.js module
|
|
117
122
|
|
|
118
123
|
This module provide the Node.js handler and the FastCGI server.
|
|
119
124
|
|
|
@@ -123,13 +128,14 @@ See [Lemonldap::NG website](http://lemonldap-ng.org) for more.
|
|
|
123
128
|
|
|
124
129
|
Of course, you must have a [LemonLDAP::NG](https://lemonldap-ng.org) system
|
|
125
130
|
installed in your organization. To install node handler, use simply:
|
|
131
|
+
|
|
126
132
|
```shell
|
|
127
133
|
npm install lemonldap-ng-handler
|
|
128
134
|
```
|
|
129
135
|
|
|
130
136
|
## CONFIGURATION
|
|
131
137
|
|
|
132
|
-
### Configuration file
|
|
138
|
+
### Configuration file _(lemonldap-ng.ini)_
|
|
133
139
|
|
|
134
140
|
Node-lemonldap-ng-handler uses LemonLDAP::NG configuration file, sections
|
|
135
141
|
`[configuration]` and `[node-handler]`.
|
|
@@ -143,11 +149,12 @@ LLNG backends. See below.
|
|
|
143
149
|
|
|
144
150
|
lemonldap-ng-handler is compatible with the following
|
|
145
151
|
[loggers](https://lemonldap-ng.org/documentation/2.0/logs):
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
152
|
+
|
|
153
|
+
- Lemonldap::NG::Common::Logger::Std : use console.log
|
|
154
|
+
- Lemonldap::NG::Common::Logger::Syslog : use Syslog _(install modern-syslog
|
|
155
|
+
to use it)_
|
|
156
|
+
- UWSGI : usable only under uwsgi V8 plugin. Override `logger` in section
|
|
157
|
+
`[nginx-handler]` in your `[lemonldap-ng.ini]` file
|
|
151
158
|
|
|
152
159
|
#### New section `[node-handler]`
|
|
153
160
|
|
|
@@ -155,6 +162,7 @@ You can overwrite here LemonLDAP::NG configuration keys. You must set the list
|
|
|
155
162
|
of virtual hosts handled by node.js in key `nodeVhosts`.
|
|
156
163
|
|
|
157
164
|
Example:
|
|
165
|
+
|
|
158
166
|
```ini
|
|
159
167
|
[node-handler]
|
|
160
168
|
nodeVhosts = test1.example.com, test2.example.com
|
|
@@ -174,15 +182,17 @@ understand Javascript.
|
|
|
174
182
|
|
|
175
183
|
Node-lemonldap-ng-handler is compatible with the following Lemonldap::NG
|
|
176
184
|
backends:
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
and
|
|
185
|
+
|
|
186
|
+
- [File](https://lemonldap-ng.org/documentation/latest/fileconfbackend)
|
|
187
|
+
- [YAMLFile](https://lemonldap-ng.org/documentation/latest/yamlconfbackend)
|
|
188
|
+
- [REST](https://lemonldap-ng.org/documentation/2.0/restconfbackend)
|
|
189
|
+
- [LDAP](https://lemonldap-ng.org/documentation/latest/ldapconfbackend)
|
|
190
|
+
- [MongoDB](https://lemonldap-ng.org/documentation/latest/mongodbconfbackend)
|
|
191
|
+
_(without authentication neither ssl for now)_
|
|
192
|
+
- [CDBI / RDBI](https://lemonldap-ng.org/documentation/latest/sqlconfbackend)
|
|
193
|
+
_(MySQL, PostgreSQL and SQLite3 only)_. **Note that you must install `nodedbi`
|
|
194
|
+
and needed dependencies**. Example with PostgreSQL _(Debian)_:
|
|
195
|
+
|
|
186
196
|
```
|
|
187
197
|
$ sudo apt-get install libdbi-dev libdbd-pgsql
|
|
188
198
|
$ npm install nodedbi
|
|
@@ -192,27 +202,29 @@ $ npm install nodedbi
|
|
|
192
202
|
|
|
193
203
|
Node-lemonldap-ng-handler is compatible with the following Lemonldap::NG
|
|
194
204
|
backends:
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
205
|
+
|
|
206
|
+
- File:
|
|
207
|
+
- [Apache::Session::File](https://metacpan.org/pod/Apache::Session::File)
|
|
208
|
+
- [Apache::Session::Browseable::File](https://metacpan.org/pod/Apache::Session::Browseable::File)
|
|
209
|
+
- Redis _(install `redis` to use them)_:
|
|
210
|
+
- [Apache::Session::Redis](https://metacpan.org/pod/Apache::Session::Redis)
|
|
211
|
+
- [Apache::Session::Browseable::Redis](https://metacpan.org/pod/Apache::Session::Browseable::Redis)
|
|
212
|
+
- LDAP backends _(install `ldapts` to use them)_:
|
|
213
|
+
- [Apache::Session::LDAP](https://metacpan.org/pod/Apache::Session::LDAP)
|
|
214
|
+
- [Apache::Session::Browseable::LDAP](https://metacpan.org/pod/Apache::Session::Browseable::LDAP)
|
|
215
|
+
- SQL backends _(install `nodedbi` to use them)_:
|
|
216
|
+
- [Apache::Session::MySQL](https://metacpan.org/pod/Apache::Session::MySQL)
|
|
217
|
+
- [Apache::Session::Browseable::MySQL](https://metacpan.org/pod/Apache::Session::Browseable::MySQL)
|
|
218
|
+
- [Apache::Session::Postgres](https://metacpan.org/pod/Apache::Session::Postgres)
|
|
219
|
+
- [Apache::Session::Browseable::Postgres](https://metacpan.org/pod/Apache::Session::Browseable::Postgres)
|
|
220
|
+
- [Apache::Session::Browseable::PgHstore](https://metacpan.org/pod/Apache::Session::Browseable::PgHstore)
|
|
221
|
+
- [Apache::Session::Browseable::PgJSON](https://metacpan.org/pod/Apache::Session::Browseable::PgJSON)
|
|
222
|
+
- [Apache::Session::SQLite3](https://metacpan.org/pod/Apache::Session::SQLite3)
|
|
223
|
+
- [Apache::Session::Browseable::SQLite](https://metacpan.org/pod/Apache::Session::Browseable::SQLite)
|
|
213
224
|
|
|
214
225
|
**Note that fo SQL backends, you must install nodedbi and needed dependencies**.
|
|
215
226
|
Example with PostgreSQL _(Debian/Ubuntu)_:
|
|
227
|
+
|
|
216
228
|
```
|
|
217
229
|
$ sudo apt-get install libdbi-dev libdbd-pgsql
|
|
218
230
|
$ npm install nodedbi
|
|
@@ -221,16 +233,18 @@ $ npm install nodedbi
|
|
|
221
233
|
### Special handlers
|
|
222
234
|
|
|
223
235
|
Node-lemonldap-ng-handler can be used as
|
|
224
|
-
|
|
225
|
-
|
|
236
|
+
|
|
237
|
+
- [DevOps handler](https://lemonldap-ng.org/documentation/2.0/devopshandler)
|
|
238
|
+
- [ServiceToken handler](https://lemonldap-ng.org/documentation/2.0/servertoserver)
|
|
226
239
|
|
|
227
240
|
You just have to specify `"type":<type>` in `init()` arguments. Example:
|
|
241
|
+
|
|
228
242
|
```javascript
|
|
229
243
|
handler.init({
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
}
|
|
244
|
+
type: "DevOps",
|
|
245
|
+
configStorage: {
|
|
246
|
+
confFile: "/path/to/lemonldap-ng.ini",
|
|
247
|
+
},
|
|
234
248
|
});
|
|
235
249
|
```
|
|
236
250
|
|
|
@@ -239,29 +253,32 @@ handler.init({
|
|
|
239
253
|
### init()
|
|
240
254
|
|
|
241
255
|
Takes an optional object argument with the following optional keys:
|
|
242
|
-
|
|
243
|
-
|
|
256
|
+
|
|
257
|
+
- configStorage: object
|
|
258
|
+
- type: special handler _(see "Special handlers section")_
|
|
244
259
|
|
|
245
260
|
### run()
|
|
246
261
|
|
|
247
262
|
Used by express to handle requests. Arguments:
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
263
|
+
|
|
264
|
+
- req: the express request
|
|
265
|
+
- res: the express response
|
|
266
|
+
- next: next function in stack
|
|
251
267
|
|
|
252
268
|
### nginxServer
|
|
253
269
|
|
|
254
270
|
Launch Nginx compatible authorization server. Takes an optional object as
|
|
255
271
|
argument. Keys:
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
272
|
+
|
|
273
|
+
- mode: server mode, "fcgi" or "http", defult to "fcgi"
|
|
274
|
+
- port: port to listen to
|
|
275
|
+
- ip: ip address to listen to
|
|
259
276
|
|
|
260
277
|
## TODO
|
|
261
278
|
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
279
|
+
- Custom functions
|
|
280
|
+
- Think to menu problem
|
|
281
|
+
- REST backends
|
|
265
282
|
|
|
266
283
|
## CHANGELOG
|
|
267
284
|
|
|
@@ -273,7 +290,7 @@ Use OW2 system to report bug or ask for features:
|
|
|
273
290
|
[LLNG OW2 GitLab](https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/issues)
|
|
274
291
|
|
|
275
292
|
> Note: uWGI isn't supported because V8 plugin for uWSGI [isn't compatible
|
|
276
|
-
with async](http://uwsgi.readthedocs.io/en/latest/V8.html#commonjs)
|
|
293
|
+
> with async](http://uwsgi.readthedocs.io/en/latest/V8.html#commonjs)
|
|
277
294
|
|
|
278
295
|
## DOWNLOAD
|
|
279
296
|
|
|
@@ -294,9 +311,8 @@ any later version.
|
|
|
294
311
|
|
|
295
312
|
This program is distributed in the hope that it will be useful,
|
|
296
313
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
297
|
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
314
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
298
315
|
GNU General Public License for more details.
|
|
299
316
|
|
|
300
317
|
You should have received a copy of the GNU General Public License
|
|
301
|
-
along with this program.
|
|
302
|
-
|
|
318
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
package/lib/handlerDevOps.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { LLNG_Session } from
|
|
2
|
-
import { Handler_Args } from
|
|
3
|
-
import LemonldapNGHandler from
|
|
4
|
-
import express from
|
|
5
|
-
import http from
|
|
1
|
+
import { LLNG_Session } from "@lemonldap-ng/types";
|
|
2
|
+
import { Handler_Args } from "./init";
|
|
3
|
+
import LemonldapNGHandler from "./handlerMain";
|
|
4
|
+
import express from "express";
|
|
5
|
+
import http from "http";
|
|
6
6
|
type Vhost_Config = {
|
|
7
7
|
prot: string;
|
|
8
8
|
host: string;
|
package/lib/handlerDevOpsST.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Request } from
|
|
2
|
-
import { ParamsDictionary } from
|
|
3
|
-
import { IncomingMessage } from
|
|
4
|
-
import { ParsedQs } from
|
|
5
|
-
import LemonldapNGHandlerDevOps from
|
|
1
|
+
import { Request } from "express";
|
|
2
|
+
import { ParamsDictionary } from "express-serve-static-core";
|
|
3
|
+
import { IncomingMessage } from "http";
|
|
4
|
+
import { ParsedQs } from "qs";
|
|
5
|
+
import LemonldapNGHandlerDevOps from "./handlerDevOps";
|
|
6
6
|
declare class LemonldapNGHandlerDevOpsST extends LemonldapNGHandlerDevOps {
|
|
7
7
|
fetchId(req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>> | IncomingMessage): string;
|
|
8
8
|
}
|
package/lib/handlerMain.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { LLNG_Session } from
|
|
2
|
-
import HandlerInit from
|
|
3
|
-
import express from
|
|
4
|
-
import http from
|
|
1
|
+
import { LLNG_Session } from "@lemonldap-ng/types";
|
|
2
|
+
import HandlerInit from "./init";
|
|
3
|
+
import express from "express";
|
|
4
|
+
import http from "http";
|
|
5
5
|
export type FastCGI_Opts = {
|
|
6
6
|
mode: string | undefined;
|
|
7
7
|
port: number | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import express from
|
|
2
|
-
import http from
|
|
3
|
-
import LemonldapNGHandler from
|
|
1
|
+
import express from "express";
|
|
2
|
+
import http from "http";
|
|
3
|
+
import LemonldapNGHandler from "./handlerMain";
|
|
4
4
|
declare class LemonldapNGHandlerServiceToken extends LemonldapNGHandler {
|
|
5
5
|
fetchId(req: express.Request | http.IncomingMessage): string;
|
|
6
6
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import express from
|
|
2
|
-
import http from
|
|
3
|
-
import { Handler_Args } from
|
|
4
|
-
import LemonldapNGHandler, { FastCGI_Opts } from
|
|
5
|
-
import LemonldapNGHandlerDevOps from
|
|
1
|
+
import express from "express";
|
|
2
|
+
import http from "http";
|
|
3
|
+
import { Handler_Args } from "./init";
|
|
4
|
+
import LemonldapNGHandler, { FastCGI_Opts } from "./handlerMain";
|
|
5
|
+
import LemonldapNGHandlerDevOps from "./handlerDevOps";
|
|
6
6
|
declare let currentClass: typeof LemonldapNGHandler | typeof LemonldapNGHandlerDevOps;
|
|
7
7
|
export declare const init: (args: Handler_Args) => Promise<LemonldapNGHandler>;
|
|
8
8
|
export declare const run: (req: express.Request | http.IncomingMessage, res: http.ServerResponse, next: Function) => any;
|