From 742b707096b795ba13b37207ed6197335637d781 Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Champin Date: Fri, 28 Apr 2023 21:59:08 +0200 Subject: [PATCH 1/2] fix invalid redirect URL --- server/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/index.ts b/server/index.ts index 6d1ea66..a237442 100644 --- a/server/index.ts +++ b/server/index.ts @@ -98,7 +98,7 @@ app.get("/redirect-from-solid-idp", async (req: Request, res: Response) => { const session = await getSessionFromStorage(req.session.sessionId); if (session) { - await session.handleIncomingRedirect(`http://localhost:${port}${req.url}`); + await session.handleIncomingRedirect(`${req.url}`); sessionId = session.info.sessionId; From 9ca9563c8362e2960a6c4bf2a1ceebfeb43d603f Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Champin Date: Fri, 28 Apr 2023 22:02:12 +0200 Subject: [PATCH 2/2] improve instructions --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4d2c52f..194dc6b 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ docker compose up -d ``` - The CSS server will listen on port 8000; -- The agent server will listen on port 8080; +- The agent server will listen on port 8080; (**but do not connect to it just yet**) - The client will listen on port 3000. _Remark: the ACP and WebHook notifications are not enabled by default. We had to provide a custom configuration (see the `css/file-acp-notifications-all.json` file)._ @@ -74,7 +74,7 @@ docker cp ./data/solid-indexer/ solid-indexer_css:/data/ Go to http://localhost:8080 and login the agent. -Use the credentials you defined at the previous step. +Use the credentials you defined for `solid-indexer` at the previous step. Click on "Authorize". @@ -82,7 +82,10 @@ Click on "Authorize". Go to http://localhost:3000 and click on the "Login" button to log the user in. -Use the credentials you defined at the previous step. +If you are still logged in as `solid-indexer` (check "Your WebID is ..."), +then click on "Use a different WebID". + +Use the credentials you defined for `user` at the previous step. Click on "Authorize". @@ -111,4 +114,4 @@ docker exec solid-indexer_css /bin/cat /data/user/public/typeIndex$.ttl Remove all the subscriptions to notifications: ``` docker exec solid-indexer_css rm -f "/data/.internal/notifications/*" -``` \ No newline at end of file +```