solid-server 5.8.8-a4d2fc6d → 5.8.8-aa5971f5

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.
Files changed (52) hide show
  1. package/common/js/index-buttons.mjs +3 -2
  2. package/config/templates/server/index.html +1 -1
  3. package/coverage/tmp/coverage-2253-1767788604477-0.json +1 -0
  4. package/coverage/tmp/{coverage-2271-1767346114541-0.json → coverage-2254-1767788582829-0.json} +1 -1
  5. package/default-templates/server/index.html +1 -1
  6. package/eslint.config.mjs +2 -2
  7. package/lib/acl-checker.mjs +1 -2
  8. package/lib/handlers/cors-proxy.mjs +2 -2
  9. package/lib/handlers/get.mjs +10 -6
  10. package/lib/ldp.mjs +0 -1
  11. package/lib/models/account-manager.mjs +2 -2
  12. package/lib/webid/lib/get.mjs +0 -1
  13. package/package.json +20 -21
  14. package/solid-server-5.8.8.tgz +0 -0
  15. package/test/index.mjs +0 -1
  16. package/test/integration/account-manager-test.mjs +2 -2
  17. package/test/integration/acl-oidc-test.mjs +0 -1
  18. package/test/integration/authentication-oidc-test.mjs +12 -7
  19. package/test/integration/authentication-oidc-with-strict-origins-turned-off-test.mjs +14 -9
  20. package/test/integration/params-test.mjs +5 -5
  21. package/test/resources/accounts/db/oidc/op/clients/{_key_e989e9f58cf29869c56a68ceb4256b69.json → _key_d76c5ec075d1b3e130a93bf247b05f54.json} +1 -1
  22. package/test/resources/accounts/db/oidc/rp/clients/_key_https%3A%2F%2Flocalhost%3A3457.json +1 -1
  23. package/test/resources/accounts-scenario/alice/db/oidc/op/clients/{_key_a31de046443144df66179553447ffed2.json → _key_3c318e68342b7462e295cee3a612cd2a.json} +1 -1
  24. package/test/resources/accounts-scenario/alice/db/oidc/op/provider.json +538 -313
  25. package/test/resources/accounts-scenario/alice/db/oidc/rp/clients/_key_https%3A%2F%2Flocalhost%3A7000.json +1 -1
  26. package/test/resources/accounts-scenario/bob/db/oidc/op/clients/{_key_cf92a9f132c1973db4163b653050ac5f.json → _key_95382781901361455f193f2b09fb9f46.json} +1 -1
  27. package/test/resources/accounts-scenario/bob/db/oidc/op/provider.json +538 -313
  28. package/test/resources/accounts-scenario/bob/db/oidc/rp/clients/_key_https%3A%2F%2Flocalhost%3A7001.json +1 -1
  29. package/test/resources/accounts-scenario/charlie/db/oidc/op/clients/{_key_25fe3c0bf640a75aecd0ccb1c2951eb1.json → _key_10c632398f20554089610cc169f07ef0.json} +1 -1
  30. package/test/resources/accounts-scenario/charlie/db/oidc/rp/clients/_key_https%3A%2F%2Flocalhost%3A5002.json +1 -1
  31. package/test/resources/accounts-strict-origin-off/alice/db/oidc/op/clients/{_key_1a5ed3aa47de01ee7438f2537e1b5331.json → _key_d3f579e3e56ee4b3cc35ec8c0022368d.json} +1 -1
  32. package/test/resources/accounts-strict-origin-off/alice/db/oidc/rp/clients/_key_https%3A%2F%2Flocalhost%3A7010.json +1 -1
  33. package/test/resources/accounts-strict-origin-off/bob/db/oidc/op/clients/{_key_30b67c31ec6753bde889bbb157e879c5.json → _key_801a614f474ed46925df9e107dc94862.json} +1 -1
  34. package/test/resources/accounts-strict-origin-off/bob/db/oidc/rp/clients/_key_https%3A%2F%2Flocalhost%3A7011.json +1 -1
  35. package/test/resources/config/templates/server/index.html +1 -1
  36. package/test/unit/account-manager-test.mjs +2 -2
  37. package/test/unit/email-welcome-test.mjs +1 -1
  38. package/test/unit/utils-test.mjs +1 -3
  39. package/test/utils/index.mjs +0 -1
  40. package/test/utils.mjs +3 -4
  41. package/common/js/auth-buttons.js +0 -67
  42. package/common/js/index-buttons.js +0 -44
  43. package/config/defaults.js +0 -25
  44. package/config/templates/emails/delete-account.js +0 -49
  45. package/config/templates/emails/invalid-username.js +0 -30
  46. package/config/templates/emails/reset-password.js +0 -49
  47. package/config/templates/emails/welcome.js +0 -39
  48. package/coverage/tmp/coverage-2270-1767346136095-0.json +0 -1
  49. package/default-templates/emails/delete-account.js +0 -49
  50. package/default-templates/emails/invalid-username.js +0 -30
  51. package/default-templates/emails/reset-password.js +0 -49
  52. package/default-templates/emails/welcome.js +0 -39
@@ -1,49 +0,0 @@
1
- 'use strict'
2
-
3
- /**
4
- * Returns a partial Email object (minus the `to` and `from` properties),
5
- * suitable for sending with Nodemailer.
6
- *
7
- * Used to send a Delete Account email, upon user request
8
- *
9
- * @param data {Object}
10
- *
11
- * @param data.deleteUrl {string}
12
- * @param data.webId {string}
13
- *
14
- * @return {Object}
15
- */
16
- function render (data) {
17
- return {
18
- subject: 'Delete Solid-account request',
19
-
20
- /**
21
- * Text version
22
- */
23
- text: `Hi,
24
-
25
- We received a request to delete your Solid account, ${data.webId}
26
-
27
- To delete your account, click on the following link:
28
-
29
- ${data.deleteUrl}
30
-
31
- If you did not mean to delete your account, ignore this email.`,
32
-
33
- /**
34
- * HTML version
35
- */
36
- html: `<p>Hi,</p>
37
-
38
- <p>We received a request to delete your Solid account, ${data.webId}</p>
39
-
40
- <p>To delete your account, click on the following link:</p>
41
-
42
- <p><a href="${data.deleteUrl}">${data.deleteUrl}</a></p>
43
-
44
- <p>If you did not mean to delete your account, ignore this email.</p>
45
- `
46
- }
47
- }
48
-
49
- module.exports.render = render
@@ -1,30 +0,0 @@
1
- module.exports.render = render
2
-
3
- function render (data) {
4
- return {
5
- subject: `Invalid username for account ${data.accountUri}`,
6
-
7
- /**
8
- * Text version
9
- */
10
- text: `Hi,
11
-
12
- We're sorry to inform you that the username for account ${data.accountUri} is not allowed after changes to username policy.
13
-
14
- This account has been set to be deleted at ${data.dateOfRemoval}.
15
-
16
- ${data.supportEmail ? `Please contact ${data.supportEmail} if you want to move your account.` : ''}`,
17
-
18
- /**
19
- * HTML version
20
- */
21
- html: `<p>Hi,</p>
22
-
23
- <p>We're sorry to inform you that the username for account ${data.accountUri} is not allowed after changes to username policy.</p>
24
-
25
- <p>This account has been set to be deleted at ${data.dateOfRemoval}.</p>
26
-
27
- ${data.supportEmail ? `<p>Please contact ${data.supportEmail} if you want to move your account.</p>` : ''}
28
- `
29
- }
30
- }
@@ -1,49 +0,0 @@
1
- 'use strict'
2
-
3
- /**
4
- * Returns a partial Email object (minus the `to` and `from` properties),
5
- * suitable for sending with Nodemailer.
6
- *
7
- * Used to send a Reset Password email, upon user request
8
- *
9
- * @param data {Object}
10
- *
11
- * @param data.resetUrl {string}
12
- * @param data.webId {string}
13
- *
14
- * @return {Object}
15
- */
16
- function render (data) {
17
- return {
18
- subject: 'Account password reset',
19
-
20
- /**
21
- * Text version
22
- */
23
- text: `Hi,
24
-
25
- We received a request to reset your password for your Solid account, ${data.webId}
26
-
27
- To reset your password, click on the following link:
28
-
29
- ${data.resetUrl}
30
-
31
- If you did not mean to reset your password, ignore this email, your password will not change.`,
32
-
33
- /**
34
- * HTML version
35
- */
36
- html: `<p>Hi,</p>
37
-
38
- <p>We received a request to reset your password for your Solid account, ${data.webId}</p>
39
-
40
- <p>To reset your password, click on the following link:</p>
41
-
42
- <p><a href="${data.resetUrl}">${data.resetUrl}</a></p>
43
-
44
- <p>If you did not mean to reset your password, ignore this email, your password will not change.</p>
45
- `
46
- }
47
- }
48
-
49
- module.exports.render = render
@@ -1,39 +0,0 @@
1
- 'use strict'
2
-
3
- /**
4
- * Returns a partial Email object (minus the `to` and `from` properties),
5
- * suitable for sending with Nodemailer.
6
- *
7
- * Used to send a Welcome email after a new user account has been created.
8
- *
9
- * @param data {Object}
10
- *
11
- * @param data.webid {string}
12
- *
13
- * @return {Object}
14
- */
15
- function render (data) {
16
- return {
17
- subject: 'Welcome to Solid',
18
-
19
- /**
20
- * Text version of the Welcome email
21
- */
22
- text: `Welcome to Solid!
23
-
24
- Your account has been created.
25
-
26
- Your Web Id: ${data.webid}`,
27
-
28
- /**
29
- * HTML version of the Welcome email
30
- */
31
- html: `<p>Welcome to Solid!</p>
32
-
33
- <p>Your account has been created.</p>
34
-
35
- <p>Your Web Id: ${data.webid}</p>`
36
- }
37
- }
38
-
39
- module.exports.render = render