solid-server 5.6.24 → 5.7.2

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.
@@ -17,7 +17,7 @@ jobs:
17
17
 
18
18
  strategy:
19
19
  matrix:
20
- node-version: [12.x, 14.x]
20
+ node-version: [12.x, 14.x, 16.x]
21
21
  os: [ubuntu-latest]
22
22
 
23
23
  steps:
package/.nvmrc CHANGED
@@ -1 +1 @@
1
- 13.14.0
1
+ 16.14.0
package/README.md CHANGED
@@ -28,12 +28,15 @@ You can install and run the server either using Node.js directly or using
28
28
  first approach, for the second approach see the section [use Docker](#use-docker)
29
29
  Section below.
30
30
 
31
+ **Note**: If using Git for Windows, it is helpful to use the -verbose flag to see the progress of the install.
32
+
31
33
  To install, first install [Node](https://nodejs.org/en/) and then run the following
32
34
 
33
35
  ```bash
34
36
  $ npm install -g solid-server
35
37
  ```
36
38
 
39
+
37
40
  ### Run a single-user server (beginner)
38
41
 
39
42
  The easiest way to setup `solid-server` is by running the wizard. This will create a `config.json` in your current folder
@@ -368,7 +371,8 @@ In order to really get a feel for the Solid platform, and to test out `solid`,
368
371
  you will need the following:
369
372
 
370
373
  1. A WebID profile and browser certificate from one of the Solid-compliant
371
- identity providers, such as [solidcommunity.net](https://solidcommunity.net).
374
+ identity providers, such as [solidcommunity.net](bourgeoa
375
+ community.net).
372
376
 
373
377
  2. A server-side SSL certificate for `solid` to use (see the section below
374
378
  on creating a self-signed certificate for testing).
@@ -450,7 +454,7 @@ You can receive or provide help too:
450
454
  - [NSS Gitter channel](https://gitter.im/solid/node-solid-server) for specific (installation) advice about this code base
451
455
  - [Create a new issue](https://github.com/solid/node-solid-server/issues/new) to report bugs
452
456
  - [Fix an issue](https://github.com/solid/node-solid-server/issues)
453
- - Reach out to Jackson at jacksonm@inrupt.com to become more involved in maintaining Node Solid Server
457
+ - Reach out to @bourgeoa at alain.bourgeois10@gmail.com to become more involved in maintaining Node Solid Server
454
458
 
455
459
  Have a look at [CONTRIBUTING.md](https://github.com/solid/node-solid-server/blob/master/CONTRIBUTING.md).
456
460
 
@@ -0,0 +1,18 @@
1
+ {
2
+ "root": "/Users/imyshor/Projects/solid/solidos/workspaces/node-solid-server/bin/data",
3
+ "port": "8443",
4
+ "serverUri": "https://localhost:8443",
5
+ "webid": false,
6
+ "mount": "/",
7
+ "configPath": "./config",
8
+ "configFile": "./config.json",
9
+ "dbPath": "./.db",
10
+ "sslKey": "../",
11
+ "sslCert": "../",
12
+ "multiuser": false,
13
+ "server": {
14
+ "name": "localhost",
15
+ "description": "",
16
+ "logo": ""
17
+ }
18
+ }
@@ -4,13 +4,16 @@ function register() {
4
4
  alert(2); window.location.href = "/register";
5
5
  }
6
6
  document.addEventListener('DOMContentLoaded', async function() {
7
- if (!UI.authn.currentUser()) await UI.authn.checkUser();
8
- let user = UI.authn.currentUser();
7
+ const authn = UI.authn
8
+ const authSession = UI.authn.authSession
9
+
10
+ if (!authn.currentUser()) await authn.checkUser();
11
+ let user = authn.currentUser();
9
12
 
10
13
  // IF LOGGED IN: SET SolidServerRootRedirectLink. LOGOUT
11
14
  if( user ) {
12
15
  window.localStorage.setItem(keyname, user.uri);
13
- await UI.authn.authSession.logout();
16
+ await authSession.logout();
14
17
  }
15
18
  else {
16
19
  let webId = window.localStorage.getItem(keyname);
@@ -31,7 +34,7 @@ document.addEventListener('DOMContentLoaded', async function() {
31
34
  let span = document.createElement("span")
32
35
  span.innerHTML = html
33
36
  loginArea.appendChild(span);
34
- loginArea.appendChild(UI.authn.loginStatusBox(document, null, {}))
37
+ loginArea.appendChild(UI.login.loginStatusBox(document, null, {}))
35
38
  const logInButton = loginArea.querySelectorAll('input')[1];
36
39
  logInButton.value = "Log in to see your WebID";
37
40
  const signUpButton = loginArea.querySelectorAll('input')[2];
@@ -17,6 +17,7 @@
17
17
 
18
18
  solid:account </> ; # link to the account uri
19
19
  pim:storage </> ; # root storage
20
+ solid:oidcIssuer <{{idp}}> ; # identity provider
20
21
 
21
22
  ldp:inbox </inbox/> ;
22
23
 
package/lib/ldp.js CHANGED
@@ -286,6 +286,7 @@ class LDP {
286
286
  }
287
287
 
288
288
  // Directory created, now write the file
289
+ if (container) return
289
290
  return withLock(path, () => new Promise((resolve, reject) => {
290
291
  // HACK: the middleware in webid-oidc.js uses body-parser, thus ending the stream of data
291
292
  // for JSON bodies. So, the stream needs to be reset
@@ -334,9 +334,9 @@ class AccountManager {
334
334
  name: userData.name,
335
335
  externalWebId: userData.externalWebId,
336
336
  localAccountId: userData.localAccountId,
337
- webId: userData.webid || userData.webId || userData.externalWebId
337
+ webId: userData.webid || userData.webId || userData.externalWebId,
338
+ idp: this.host.serverUri
338
339
  }
339
-
340
340
  if (userConfig.username) {
341
341
  userConfig.username = userConfig.username.toLowerCase()
342
342
  }
@@ -360,6 +360,9 @@ class AccountManager {
360
360
  } else { // no username - derive it from web id
361
361
  if (userConfig.externalWebId) {
362
362
  userConfig.username = userConfig.externalWebId
363
+
364
+ // TODO find oidcIssuer from externalWebId
365
+ // removed from idp https://github.com/solid/node-solid-server/pull/1566
363
366
  } else {
364
367
  userConfig.username = this.usernameFromWebId(userConfig.webId)
365
368
  }
@@ -75,7 +75,8 @@ class AccountTemplate {
75
75
  const substitutions = {
76
76
  name: userAccount.displayName,
77
77
  webId: userAccount.webId,
78
- email: userAccount.email
78
+ email: userAccount.email,
79
+ idp: userAccount.idp
79
80
  }
80
81
 
81
82
  return substitutions
@@ -24,6 +24,7 @@ class UserAccount {
24
24
  this.email = options.email
25
25
  this.externalWebId = options.externalWebId
26
26
  this.localAccountId = options.localAccountId
27
+ this.idp = options.idp
27
28
  }
28
29
 
29
30
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "solid-server",
3
3
  "description": "Solid server on top of the file-system",
4
- "version": "5.6.24",
4
+ "version": "5.7.2",
5
5
  "author": {
6
6
  "name": "Tim Berners-Lee",
7
7
  "email": "timbl@w3.org"
@@ -61,44 +61,44 @@
61
61
  "dependencies": {
62
62
  "@fastify/busboy": "^1.0.0",
63
63
  "@solid/acl-check": "^0.4.5",
64
- "@solid/oidc-auth-manager": "^0.24.1",
65
- "@solid/oidc-op": "0.11.5",
66
- "async-lock": "^1.3.0",
67
- "body-parser": "^1.19.1",
64
+ "@solid/oidc-auth-manager": "^0.24.2",
65
+ "@solid/oidc-op": "^0.11.6",
66
+ "async-lock": "^1.3.1",
67
+ "body-parser": "^1.20.0",
68
68
  "bootstrap": "^3.4.1",
69
- "cached-path-relative": "^1.0.2",
69
+ "cached-path-relative": "^1.1.0",
70
70
  "camelize": "^1.0.0",
71
71
  "cheerio": "^1.0.0-rc.10",
72
72
  "colorette": "^2.0.16",
73
73
  "commander": "^8.3.0",
74
74
  "cors": "^2.8.5",
75
- "debug": "^4.3.3",
76
- "express": "^4.17.2",
75
+ "debug": "^4.3.4",
76
+ "express": "^4.17.3",
77
77
  "express-handlebars": "^5.3.4",
78
78
  "express-session": "^1.17.2",
79
79
  "extend": "^3.0.2",
80
80
  "from2": "^2.3.0",
81
- "fs-extra": "^10.0.0",
81
+ "fs-extra": "^10.0.1",
82
82
  "get-folder-size": "^2.0.1",
83
83
  "glob": "^7.2.0",
84
84
  "global-tunnel-ng": "^2.7.1",
85
85
  "handlebars": "^4.7.7",
86
- "http-proxy-middleware": "^2.0.1",
87
- "inquirer": "^8.2.0",
86
+ "http-proxy-middleware": "^2.0.4",
87
+ "inquirer": "^8.2.2",
88
88
  "into-stream": "^6.0.0",
89
89
  "ip-range-check": "0.2.0",
90
90
  "is-ip": "^3.1.0",
91
91
  "li": "^1.3.0",
92
- "mashlib": "^1.7.21",
93
- "mime-types": "^2.1.34",
94
- "negotiator": "^0.6.2",
92
+ "mashlib": "^1.8.2",
93
+ "mime-types": "^2.1.35",
94
+ "negotiator": "^0.6.3",
95
95
  "node-fetch": "^2.6.7",
96
- "node-forge": "^1.2.1",
96
+ "node-forge": "^1.3.1",
97
97
  "node-mailer": "^0.1.1",
98
- "nodemailer": "^6.7.2",
98
+ "nodemailer": "^6.7.3",
99
99
  "oidc-op-express": "^0.0.3",
100
100
  "owasp-password-strength-test": "^1.3.0",
101
- "rdflib": "^2.2.17",
101
+ "rdflib": "^2.2.19",
102
102
  "recursive-readdir": "^2.2.2",
103
103
  "request": "^2.88.2",
104
104
  "rimraf": "^3.0.2",
@@ -108,7 +108,7 @@
108
108
  "text-encoder-lite": "^2.0.0",
109
109
  "the-big-username-blacklist": "^1.5.2",
110
110
  "ulid": "^2.3.0",
111
- "urijs": "^1.19.7",
111
+ "urijs": "^1.19.11",
112
112
  "uuid": "^8.3.2",
113
113
  "valid-url": "^1.0.9",
114
114
  "validator": "^13.7.0",
@@ -116,23 +116,23 @@
116
116
  },
117
117
  "devDependencies": {
118
118
  "@solid/solid-auth-oidc": "^0.3.0",
119
- "chai": "4.3.4",
119
+ "chai": "^4.3.6",
120
120
  "chai-as-promised": "7.1.1",
121
121
  "cross-env": "7.0.3",
122
122
  "dirty-chai": "2.0.1",
123
123
  "eslint": "^7.32.0",
124
124
  "localstorage-memory": "1.0.3",
125
- "mocha": "9.1.3",
126
- "nock": "^13.2.1",
125
+ "mocha": "^9.2.2",
126
+ "nock": "^13.2.4",
127
127
  "node-mocks-http": "1.11.0",
128
128
  "nyc": "15.1.0",
129
129
  "pre-commit": "1.2.2",
130
130
  "randombytes": "2.1.0",
131
131
  "sinon": "12.0.1",
132
132
  "sinon-chai": "3.7.0",
133
- "snyk": "^1.809.0",
133
+ "snyk": "^1.906.0",
134
134
  "standard": "16.0.4",
135
- "supertest": "6.1.6",
135
+ "supertest": "^6.2.2",
136
136
  "turtle-validator": "1.1.1",
137
137
  "whatwg-url": "11.0.0"
138
138
  },