Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update code to CSS v7 #1

Closed
bourgeoa opened this issue Nov 20, 2024 · 1 comment · Fixed by #3 or #6
Closed

update code to CSS v7 #1

bourgeoa opened this issue Nov 20, 2024 · 1 comment · Fixed by #3 or #6

Comments

@bourgeoa
Copy link
Owner

bourgeoa commented Nov 20, 2024

There as been some changes since original CSS v6

  • authorization tokenName CSS-Account-Token
// Performs an HTTP request on an authenticated CSS API
async function cssApiFetch(url, options = {}, authorization = '') {
  const response = await fetch(url, {
    ...options,
    headers: {
      ...options.headers,
      accept: 'application/json',
      authorization: `CSS-Account-Token ${authorization}`,
    },
  });
  • reorganisation of the json account file
    Example of new account 1829893b-aeb7-4956-98fa-d8bf288dd61a.json
{
	"key":"accounts/data/1829893b-aeb7-4956-98fa-d8bf288dd61a",
	"payload":{
		"linkedLoginsCount":1,
		"id":"1829893b-aeb7-4956-98fa-d8bf288dd61a",
		"**password**":{
			"91f774fa-a454-4d4e-b990-959a0aed60e8":{
				"accountId":"1829893b-aeb7-4956-98fa-d8bf288dd61a",
				"email":"[email protected]",
				"password":"$2a$10$AU071phhoyReZkOE6cSmNulqepC.h8tJfJqhcQWy0MY47BeeGl7l6",
				"verified":true,
				"id":"91f774fa-a454-4d4e-b990-959a0aed60e8"
			}
		},
		"**clientCredentials**":{},
		"**pod**":{
			"ee74c7d0-1d87-4c9a-b824-492fc0c4a621":{
				"baseUrl":"https://localhost:3000/bourgeoa/",
				"accountId":"1829893b-aeb7-4956-98fa-d8bf288dd61a",
				"id":"ee74c7d0-1d87-4c9a-b824-492fc0c4a621",
				"**owner**":{
					"094c98ad-7563-47f2-b533-0fff3d0beecd":{
						"podId":"ee74c7d0-1d87-4c9a-b824-492fc0c4a621",
						"webId":"https://localhost:3000/bourgeoa/profile/card#me",
						"visible":false,
						"id":"094c98ad-7563-47f2-b533-0fff3d0beecd"
					}
				}
			}
		},
		"**webIdLink**":{
			"b66ab80d-1429-4a5a-8cfd-c785c6f3f492":{
				"webId":"https://localhost:3000/bourgeoa/profile/card#me",
				"accountId":"1829893b-aeb7-4956-98fa-d8bf288dd61a",
				"id":"b66ab80d-1429-4a5a-8cfd-c785c6f3f492"
			}
		},
		"rememberLogin":true
	}
}
@bourgeoa bourgeoa linked a pull request Nov 20, 2024 that will close this issue
@bourgeoa bourgeoa reopened this Nov 20, 2024
@bourgeoa
Copy link
Owner Author

Run a test on the solidcommunitynet server
Migrating from NSS solidcommunity.net:8443 to Pivot solidcommunity.net:8443

1️⃣  NSS: Read pod configurations from disk
        ✅ alice         ✅ username    ✅ password     ✅ webId
        ✅ bob   ✅ username    ✅ password     ✅ webId
        ✅ bourgeoa      ✅ username    ✅ password     ✅ webId
        ✅ bourgeoa1     ✅ username    ✅ password     ✅ webId
        ✅ christiantaltas       ✅ username    ✅ password     ✅ webId
        ✅ cxres         ✅ username    ✅ password     ✅ webId
        ✅ dietercasier  ✅ username    ✅ password     ✅ webId
        ✅ hendrikbecker         ✅ username    ✅ password     ✅ webId
        ✅ hochstenbach  ✅ username    ✅ password     ✅ webId
        ✅ interoptest   ✅ username    ✅ password     ✅ webId
        ✅ jackson       ✅ username    ✅ password     ✅ webId
        ✅ jamescarlyle  ✅ username    ✅ password     ✅ webId
        ✅ jeff-zucker   ✅ username    ✅ password     ✅ webId
        ✅ jeffz         ✅ username    ✅ password     ✅ webId
        ✅ kamertestpod  ✅ username    ✅ password     ✅ webId
        ✅ matthieub     ✅ username    ✅ password     ✅ webId
        ✅ mcgyver       ✅ username    ✅ password     ✅ webId
        ✅ mikeadams     ✅ username    ✅ password     ✅ webId
        ✅ nev   ✅ username    ✅ password     ✅ webId
        ✅ noeldemartin  ✅ username    ✅ password     ✅ webId
        ✅ os    ✅ username    ✅ password     ✅ webId
        ✅ philuser      ✅ username    ✅ password     ✅ webId
        ✅ podbrowser    ✅ username    ✅ password     ✅ webId
        ✅ podbrowser2   ✅ username    ✅ password     ✅ webId
        ✅ podchat       ✅ username    ✅ password     ✅ webId
        ✅ pods  ✅ username    ✅ password     ✅ webId
        ✅ selmelc       ✅ username    ✅ password     ✅ webId
        ✅ semantyk      ✅ username    ✅ password     ✅ webId
        ✅ server-admin  ✅ username    ✅ password     ✅ webId
        ✅ server8443    ✅ username    ✅ password     ✅ webId
        ✅ sharon        ✅ username    ✅ password     ✅ webId
        ✅ sharontest    ✅ username    ✅ password     ✅ webId
        ✅ sharontest2   ✅ username    ✅ password     ✅ webId
        ✅ solid-crud-tests-example-2    ✅ username    ✅ password     ✅ webId
        ✅ solid-test-suite-alice        ✅ username    ✅ password     ✅ webId
        ✅ solidtestsuite        ✅ username    ✅ password     ✅ webId
        ✅ spoggy        ✅ username    ✅ password     ✅ webId
        ✅ sstratsianis  ✅ username    ✅ password     ✅ webId
        ✅ sstratsianistest      ✅ username    ✅ password     ✅ webId
        ✅ test-pod      ✅ username    ✅ password     ✅ webId
        ✅ testsolidos   ✅ username    ✅ password     ✅ webId
        ✅ timbl         ✅ username    ✅ password     ✅ webId
        ✅ timeatest     ✅ username    ✅ password     ✅ webId
        ✅ timojkankaanpaa       ✅ username    ✅ password     ✅ webId
        ✅ vbaureus      ✅ username    ✅ password     ✅ webId
        ✅ vincent-test  ✅ username    ✅ password     ✅ webId
        ✅ zwifi         ✅ username    ✅ password     ✅ webId
2️⃣  CSS: Create 47 accounts with pods via HTTP
        ✅ alice         ✅ account     ✅ login        ✅ pod
        ✅ bob   ✅ account     ✅ login        ✅ pod
        ❌ bourgeoa      ✅ account     ✅ login        ❌ pod
        ✅ bourgeoa1     ✅ account     ✅ login        ✅ pod
        ✅ christiantaltas       ✅ account     ✅ login        ✅ pod
        ✅ cxres         ✅ account     ✅ login        ✅ pod
        ✅ dietercasier  ✅ account     ✅ login        ✅ pod
        ✅ hendrikbecker         ✅ account     ✅ login        ✅ pod
        ✅ hochstenbach  ✅ account     ✅ login        ✅ pod
        ✅ interoptest   ✅ account     ✅ login        ✅ pod
        ✅ jackson       ✅ account     ✅ login        ✅ pod
        ✅ jamescarlyle  ✅ account     ✅ login        ✅ pod
        ❌ jeff-zucker   ✅ account     ✅ login        ❌ pod
        ✅ jeffz         ✅ account     ✅ login        ✅ pod
        ✅ kamertestpod  ✅ account     ✅ login        ✅ pod
        ✅ matthieub     ✅ account     ✅ login        ✅ pod
        ✅ mcgyver       ✅ account     ✅ login        ✅ pod
        ✅ mikeadams     ✅ account     ✅ login        ✅ pod
        ✅ nev   ✅ account     ✅ login        ✅ pod
        ✅ noeldemartin  ✅ account     ✅ login        ✅ pod
        ✅ os    ✅ account     ✅ login        ✅ pod
        ✅ philuser      ✅ account     ✅ login        ✅ pod
        ✅ podbrowser    ✅ account     ✅ login        ✅ pod
        ✅ podbrowser2   ✅ account     ✅ login        ✅ pod
        ✅ podchat       ✅ account     ✅ login        ✅ pod
        ✅ pods  ✅ account     ✅ login        ✅ pod
        ✅ selmelc       ✅ account     ✅ login        ✅ pod
        ✅ semantyk      ✅ account     ✅ login        ✅ pod
        ✅ server-admin  ✅ account     ✅ login        ✅ pod
        ✅ server8443    ✅ account     ✅ login        ✅ pod
        ✅ sharon        ✅ account     ✅ login        ✅ pod
        ✅ sharontest    ✅ account     ✅ login        ✅ pod
        ✅ sharontest2   ✅ account     ✅ login        ✅ pod
        ✅ solid-crud-tests-example-2    ✅ account     ✅ login        ✅ pod
        ✅ solid-test-suite-alice        ✅ account     ✅ login        ✅ pod
        ✅ solidtestsuite        ✅ account     ✅ login        ✅ pod
        ✅ spoggy        ✅ account     ✅ login        ✅ pod
        ✅ sstratsianis  ✅ account     ✅ login        ✅ pod
        ✅ sstratsianistest      ✅ account     ✅ login        ✅ pod
        ✅ test-pod      ✅ account     ✅ login        ✅ pod
        ✅ testsolidos   ✅ account     ✅ login        ✅ pod
        ✅ timbl         ✅ account     ✅ login        ✅ pod
        ✅ timeatest     ✅ account     ✅ login        ✅ pod
        ✅ timojkankaanpaa       ✅ account     ✅ login        ✅ pod
        ✅ vbaureus      ✅ account     ✅ login        ✅ pod
        ✅ vincent-test  ✅ account     ✅ login        ✅ pod
        ✅ zwifi         ✅ account     ✅ login        ✅ pod
3️⃣  CSS: Update 45 accounts on disk
        ✅ alice         ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ bob   ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ bourgeoa1     ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ christiantaltas       ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ cxres         ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ dietercasier  ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ hendrikbecker         ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ hochstenbach  ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ interoptest   ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ jackson       ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ jamescarlyle  ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ jeffz         ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ kamertestpod  ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ matthieub     ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ mcgyver       ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ mikeadams     ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ nev   ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ noeldemartin  ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ os    ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ philuser      ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ podbrowser    ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ podbrowser2   ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ podchat       ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ pods  ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ selmelc       ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ semantyk      ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ server-admin  ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ server8443    ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ sharon        ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ sharontest    ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ sharontest2   ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ solid-crud-tests-example-2    ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ solid-test-suite-alice        ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ solidtestsuite        ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ spoggy        ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ sstratsianis  ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ sstratsianistest      ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ test-pod      ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ testsolidos   ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ timbl         ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ timeatest     ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ timojkankaanpaa       ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ vbaureus      ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ vincent-test  ✅ read        ✅ password     ✅ webId        ✅ write
        ✅ zwifi         ✅ read        ✅ password     ✅ webId        ✅ write
4️⃣  CSS: Copy 45 pod contents on disk
        ✅ alice         ✅ clear       ✅ copy
        ✅ bob   ✅ clear       ✅ copy
        ✅ bourgeoa1     ✅ clear       ✅ copy
        ✅ christiantaltas       ✅ clear       ✅ copy
        ✅ cxres         ✅ clear       ✅ copy
        ✅ dietercasier  ✅ clear       ✅ copy
        ✅ hendrikbecker         ✅ clear       ✅ copy
        ✅ hochstenbach  ✅ clear       ✅ copy
        ✅ interoptest   ✅ clear       ✅ copy
        ✅ jackson       ✅ clear       ✅ copy
        ✅ jamescarlyle  ✅ clear       ✅ copy
        ✅ jeffz         ✅ clear       ✅ copy
        ✅ kamertestpod  ✅ clear       ✅ copy
        ✅ matthieub     ✅ clear       ✅ copy
        ✅ mcgyver       ✅ clear       ✅ copy
        ✅ mikeadams     ✅ clear       ✅ copy
        ✅ nev   ✅ clear       ✅ copy
        ✅ noeldemartin  ✅ clear       ✅ copy
        ✅ os    ✅ clear       ✅ copy
        ✅ philuser      ✅ clear       ✅ copy
        ✅ podbrowser    ✅ clear       ✅ copy
        ✅ podbrowser2   ✅ clear       ✅ copy
        ✅ podchat       ✅ clear       ✅ copy
        ✅ pods  ✅ clear       ✅ copy
        ✅ selmelc       ✅ clear       ✅ copy
        ✅ semantyk      ✅ clear       ✅ copy
        ✅ server-admin  ✅ clear       ✅ copy
        ✅ server8443    ✅ clear       ✅ copy
        ✅ sharon        ✅ clear       ✅ copy
        ✅ sharontest    ✅ clear       ✅ copy
        ✅ sharontest2   ✅ clear       ✅ copy
        ✅ solid-crud-tests-example-2    ✅ clear       ✅ copy
        ✅ solid-test-suite-alice        ✅ clear       ✅ copy
        ✅ solidtestsuite        ✅ clear       ✅ copy
        ✅ spoggy        ✅ clear       ✅ copy
        ✅ sstratsianis  ✅ clear       ✅ copy
        ✅ sstratsianistest      ✅ clear       ✅ copy
        ✅ test-pod      ✅ clear       ✅ copy
        ✅ testsolidos   ✅ clear       ✅ copy
        ✅ timbl         ✅ clear       ✅ copy
        ✅ timeatest     ✅ clear       ✅ copy
        ✅ timojkankaanpaa       ✅ clear       ✅ copy
        ✅ vbaureus      ✅ clear       ✅ copy
        ✅ vincent-test  ✅ clear       ✅ copy
        ✅ zwifi         ✅ clear       ✅ copy
5️⃣  CSS: Check 45 pods for known resources
        ✅ alice         ✅ publicProfile       ✅ privateInbox
        ✅ bob   ✅ publicProfile       ✅ privateInbox
        ❌ bourgeoa1     ❌ publicProfile       ✅ privateInbox
        ✅ christiantaltas       ✅ publicProfile       ✅ privateInbox
        ✅ cxres         ✅ publicProfile       ✅ privateInbox
        ✅ dietercasier  ✅ publicProfile       ✅ privateInbox
        ✅ hendrikbecker         ✅ publicProfile       ✅ privateInbox
        ✅ hochstenbach  ✅ publicProfile       ✅ privateInbox
        ✅ interoptest   ✅ publicProfile       ✅ privateInbox
        ❌ jackson       ❌ publicProfile       ✅ privateInbox
        ❌ jamescarlyle  ❌ publicProfile       ✅ privateInbox
        ❌ jeffz         ❌ publicProfile       ✅ privateInbox
        ✅ kamertestpod  ✅ publicProfile       ✅ privateInbox
        ❌ matthieub     ❌ publicProfile       ✅ privateInbox
        ✅ mcgyver       ✅ publicProfile       ✅ privateInbox
        ❌ mikeadams     ❌ publicProfile       ✅ privateInbox
        ✅ nev   ✅ publicProfile       ✅ privateInbox
        ❌ noeldemartin  ❌ publicProfile       ✅ privateInbox
        ❌ os    ❌ publicProfile       ✅ privateInbox
        ✅ philuser      ✅ publicProfile       ✅ privateInbox
        ❌ podbrowser    ❌ publicProfile       ✅ privateInbox
        ❌ podbrowser2   ❌ publicProfile       ✅ privateInbox
        ❌ podchat       ❌ publicProfile       ✅ privateInbox
        ❌ pods  ❌ publicProfile       ✅ privateInbox
        ✅ selmelc       ✅ publicProfile       ✅ privateInbox
        ❌ semantyk      ❌ publicProfile       ✅ privateInbox
        ✅ server-admin  ✅ publicProfile       ✅ privateInbox
        ❌ server8443    ❌ publicProfile       ❌ privateInbox
        ❌ sharon        ❌ publicProfile       ✅ privateInbox
        ❌ sharontest    ❌ publicProfile       ✅ privateInbox
        ❌ sharontest2   ❌ publicProfile       ✅ privateInbox
        ❌ solid-crud-tests-example-2    ❌ publicProfile       ✅ privateInbox
        ❌ solid-test-suite-alice        ❌ publicProfile       ✅ privateInbox
        ❌ solidtestsuite        ❌ publicProfile       ✅ privateInbox
        ❌ spoggy        ❌ publicProfile       ✅ privateInbox
        ❌ sstratsianis  ❌ publicProfile       ✅ privateInbox
        ❌ sstratsianistest      ❌ publicProfile       ✅ privateInbox
        ✅ test-pod      ✅ publicProfile       ✅ privateInbox
        ❌ testsolidos   ❌ publicProfile       ✅ privateInbox
        ❌ timbl         ❌ publicProfile       ✅ privateInbox
        ❌ timeatest     ❌ publicProfile       ✅ privateInbox
        ❌ timojkankaanpaa       ❌ publicProfile       ✅ privateInbox
        ✅ vbaureus      ✅ publicProfile       ✅ privateInbox
        ❌ vincent-test  ❌ publicProfile       ✅ privateInbox
        ❌ zwifi         ❌ publicProfile       ✅ privateInbox

@bourgeoa bourgeoa linked a pull request Nov 24, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant