solid-server 5.8.8-8b04c020 → 5.8.8-a4d2fc6d
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/common/js/index-buttons.mjs +8 -3
- package/coverage/tmp/coverage-2270-1767346136095-0.json +1 -0
- package/coverage/tmp/{coverage-2329-1766874045743-0.json → coverage-2271-1767346114541-0.json} +1 -1
- package/eslint.config.mjs +1 -1
- package/lib/acl-checker.mjs +2 -1
- package/lib/create-server.mjs +2 -2
- package/lib/handlers/cors-proxy.mjs +2 -2
- package/lib/handlers/get.mjs +9 -13
- package/lib/ldp.mjs +3 -2
- package/lib/models/account-manager.mjs +1 -1
- package/lib/utils.mjs +1 -1
- package/lib/webid/lib/get.mjs +1 -0
- package/package.json +33 -19
- package/solid-server-5.8.8.tgz +0 -0
- package/test/index.mjs +3 -2
- package/test/integration/acl-oidc-test.mjs +2 -1
- package/test/integration/authentication-oidc-test.mjs +6 -10
- package/test/integration/authentication-oidc-with-strict-origins-turned-off-test.mjs +9 -14
- package/test/integration/http-copy-test.mjs +2 -2
- package/test/integration/oidc-manager-test.mjs +95 -1
- package/test/resources/accounts/db/oidc/op/clients/{_key_5679b38cc39322649b358828e549f081.json → _key_e989e9f58cf29869c56a68ceb4256b69.json} +1 -1
- package/test/resources/accounts/db/oidc/rp/clients/_key_https%3A%2F%2Flocalhost%3A3457.json +1 -1
- package/test/resources/accounts-scenario/alice/db/oidc/op/clients/{_key_cbb43052dfa98178e38cdbc019e04265.json → _key_a31de046443144df66179553447ffed2.json} +1 -1
- package/test/resources/accounts-scenario/alice/db/oidc/rp/clients/_key_https%3A%2F%2Flocalhost%3A7000.json +1 -1
- package/test/resources/accounts-scenario/bob/db/oidc/op/clients/{_key_36a0d4102cba4fe51c5fe4a16081e9e9.json → _key_cf92a9f132c1973db4163b653050ac5f.json} +1 -1
- package/test/resources/accounts-scenario/bob/db/oidc/rp/clients/_key_https%3A%2F%2Flocalhost%3A7001.json +1 -1
- package/test/resources/accounts-scenario/charlie/db/oidc/op/clients/{_key_4c0c9486e322b53857ab916a14ca0c7c.json → _key_25fe3c0bf640a75aecd0ccb1c2951eb1.json} +1 -1
- package/test/resources/accounts-scenario/charlie/db/oidc/rp/clients/_key_https%3A%2F%2Flocalhost%3A5002.json +1 -1
- package/test/resources/accounts-strict-origin-off/alice/db/oidc/op/clients/{_key_714755e5bd0de8bb6887def74e169a31.json → _key_1a5ed3aa47de01ee7438f2537e1b5331.json} +1 -1
- package/test/resources/accounts-strict-origin-off/alice/db/oidc/rp/clients/_key_https%3A%2F%2Flocalhost%3A7010.json +1 -1
- package/test/resources/accounts-strict-origin-off/bob/db/oidc/op/clients/{_key_4b633db2888c8406109667552ff9e46e.json → _key_30b67c31ec6753bde889bbb157e879c5.json} +1 -1
- package/test/resources/accounts-strict-origin-off/bob/db/oidc/rp/clients/_key_https%3A%2F%2Flocalhost%3A7011.json +1 -1
- package/test/unit/create-account-request-test.mjs +1 -1
- package/test/unit/utils-test.mjs +3 -1
- package/test/utils/index.mjs +3 -2
- package/test/utils.mjs +3 -2
- package/coverage/tmp/coverage-2328-1766874068095-0.json +0 -1
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
// ESM version of index-buttons.js
|
|
2
2
|
'use strict'
|
|
3
3
|
const keyname = 'SolidServerRootRedirectLink'
|
|
4
|
+
/* function register () {
|
|
5
|
+
alert(2)
|
|
6
|
+
window.location.href = '/register'
|
|
7
|
+
} */
|
|
4
8
|
document.addEventListener('DOMContentLoaded', async function () {
|
|
5
9
|
const authn = UI.authn
|
|
6
10
|
const authSession = UI.authn.authSession
|
|
@@ -19,9 +23,10 @@ document.addEventListener('DOMContentLoaded', async function () {
|
|
|
19
23
|
window.localStorage.removeItem(keyname)
|
|
20
24
|
document.getElementById('loggedIn').style.display = 'block'
|
|
21
25
|
document.getElementById('loggedIn').innerHTML = `<p>Your WebID is : <a href="${webId}">${webId}</a>.</p> <p>Visit your profile to log into your Pod.</p>`
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
26
|
+
|
|
27
|
+
// IF NOT LOGGED IN AND COOKIE DOES NOT EXIST
|
|
28
|
+
// SHOW WELCOME, SHOW LOGIN BUTTON
|
|
29
|
+
// HIDE LOGIN BUTTON, ADD REGISTER BUTTON
|
|
25
30
|
} else {
|
|
26
31
|
const loginArea = document.getElementById('loginStatusArea')
|
|
27
32
|
const html = `<input type="button" onclick="window.location.href='/register'" value="Register to get a Pod" class="register-button" style="padding: 1em; border-radius:0.2em; font-size: 100%;margin: 0.75em 0 0.75em 0.5em !important; padding: 0.5em !important;background-color: #efe;">`
|