Skip to content

Cannot access private resources on my local server (v5.0.0-beta.0) #994

@megoth

Description

@megoth

I've set up a local server using the self-signed certificates, created a local WebID, and logged in with the newly created WebID. But my user is not recognized by the server, and I'm not allowed to access private resources.

image

(I've modified auth-buttons to log the session object.)

It seems that cookies are not set, so that might a clue to why it is not working properly.

The full log from my local server when trying to access my private container.

  solid:index Looking for index in /private/ +45s
  solid:ACL Using ACL https://megoth.localhost:8443/private/.acl for ./ +7ms
  solid:ACL accessDenied: checking access to <https://megoth.localhost:8443/private/> by null and origin null +0ms
  solid:ACL modesAllowed: checking access to <https://megoth.localhost:8443/private/> by null and origin null +0ms
  solid:ACL    1 direct authentications about <https://megoth.localhost:8443/private/> +0ms
  solid:ACL    Checking auth <https://megoth.localhost:8443/private/.acl#owner> with agent null +0ms
  solid:ACL     Agent or group: Fail: not public and not logged on. +0ms
  solid:ACL      The agent/group/public check fails +0ms
  solid:ACL       Check failed: User Unauthorized +1ms
  solid:ACL accessDenied: modeURIorReasons: ["User Unauthorized"] +0ms
  solid:ACL  checking <http://www.w3.org/ns/auth/acl#Read> +0ms
  solid:ACL   MODE REQUIRED NOT ALLOWED: <http://www.w3.org/ns/auth/acl#Read> Denying with User Unauthorized +0ms
  solid:ACL Read access denied to (none): 401 - User Unauthorized +0ms
  solid:server Error page because of: { [HTTPError: User Unauthorized] name: 'HTTPError', message: 'User Unauthorized', status: 401 } +0ms
  solid:server Display login-required for https://megoth.localhost:8443/private/ +0ms
  solid:ACL Using ACL https://megoth.localhost:8443/favicon.ico.acl for ./favicon.ico +1s
  solid:ACL accessDenied: checking access to <https://megoth.localhost:8443/favicon.ico> by null and origin null +3ms
  solid:ACL modesAllowed: checking access to <https://megoth.localhost:8443/favicon.ico> by null and origin null +0ms
  solid:ACL    2 direct authentications about <https://megoth.localhost:8443/favicon.ico> +1ms
  solid:ACL    Checking auth <https://megoth.localhost:8443/favicon.ico.acl#owner> with agent null +0ms
  solid:ACL     Agent or group: Fail: not public and not logged on. +0ms
  solid:ACL      The agent/group/public check fails +0ms
  solid:ACL       Check failed: User Unauthorized +0ms
  solid:ACL    Checking auth <https://megoth.localhost:8443/favicon.ico.acl#public> with agent null +0ms
  solid:ACL     Agent or group: Ok, its public. +0ms
  solid:ACL      Origin check not needed: no origin. +0ms
  solid:ACL       Mode allowed: <http://www.w3.org/ns/auth/acl#Read> +1ms
  solid:ACL accessDenied: modeURIorReasons: ["User Unauthorized","http://www.w3.org/ns/auth/acl#Read"] +0ms
  solid:ACL  checking <http://www.w3.org/ns/auth/acl#Read> +0ms
  solid:ACL   Mode required and allowed:<http://www.w3.org/ns/auth/acl#Read> +0ms
  solid:ACL Using ACL https://megoth.localhost:8443/favicon.ico.acl for ./favicon.ico +0ms
  solid:ACL Using ACL https://megoth.localhost:8443/favicon.ico.acl for ./favicon.ico +1ms
  solid:ACL Using ACL https://megoth.localhost:8443/favicon.ico.acl for ./favicon.ico +0ms
  solid:ACL Using ACL https://megoth.localhost:8443/favicon.ico.acl for ./favicon.ico +1ms
  solid:ACL Using ACL https://megoth.localhost:8443/favicon.ico.acl for ./favicon.ico +0ms
  solid:ACL Using ACL https://megoth.localhost:8443/favicon.ico.acl for ./favicon.ico +0ms
  solid:ACL Using ACL https://megoth.localhost:8443/favicon.ico.acl for ./favicon.ico +0ms
  solid:ACL accessDenied: checking access to <https://megoth.localhost:8443/favicon.ico> by null and origin null +0ms
  solid:ACL modesAllowed: checking access to <https://megoth.localhost:8443/favicon.ico> by null and origin null +0ms
  solid:ACL    2 direct authentications about <https://megoth.localhost:8443/favicon.ico> +1ms
  solid:ACL    Checking auth <https://megoth.localhost:8443/favicon.ico.acl#owner> with agent null +0ms
  solid:ACL     Agent or group: Fail: not public and not logged on. +0ms
  solid:ACL      The agent/group/public check fails +0ms
  solid:ACL       Check failed: User Unauthorized +0ms
  solid:ACL    Checking auth <https://megoth.localhost:8443/favicon.ico.acl#public> with agent null +0ms
  solid:ACL     Agent or group: Ok, its public. +0ms
  solid:ACL      Origin check not needed: no origin. +0ms
  solid:ACL       Mode allowed: <http://www.w3.org/ns/auth/acl#Read> +0ms
  solid:ACL accessDenied: modeURIorReasons: ["User Unauthorized","http://www.w3.org/ns/auth/acl#Read"] +0ms
  solid:ACL  checking <http://www.w3.org/ns/auth/acl#Read> +0ms
  solid:ACL   Mode required and allowed:<http://www.w3.org/ns/auth/acl#Read> +0ms
  solid:ACL accessDenied: checking access to <https://megoth.localhost:8443/favicon.ico> by null and origin null +0ms
  solid:ACL modesAllowed: checking access to <https://megoth.localhost:8443/favicon.ico> by null and origin null +0ms
  solid:ACL    2 direct authentications about <https://megoth.localhost:8443/favicon.ico> +1ms
  solid:ACL    Checking auth <https://megoth.localhost:8443/favicon.ico.acl#owner> with agent null +0ms
  solid:ACL     Agent or group: Fail: not public and not logged on. +0ms
  solid:ACL      The agent/group/public check fails +0ms
  solid:ACL       Check failed: User Unauthorized +0ms
  solid:ACL    Checking auth <https://megoth.localhost:8443/favicon.ico.acl#public> with agent null +0ms
  solid:ACL     Agent or group: Ok, its public. +0ms
  solid:ACL      Origin check not needed: no origin. +0ms
  solid:ACL       Mode allowed: <http://www.w3.org/ns/auth/acl#Read> +0ms
  solid:ACL accessDenied: modeURIorReasons: ["User Unauthorized","http://www.w3.org/ns/auth/acl#Read"] +0ms
  solid:ACL  checking <http://www.w3.org/ns/auth/acl#Write> +0ms
  solid:ACL   MODE REQUIRED NOT ALLOWED: <http://www.w3.org/ns/auth/acl#Write> Denying with User Unauthorized +0ms
  solid:ACL accessDenied: checking access to <https://megoth.localhost:8443/favicon.ico> by null and origin null +0ms
  solid:ACL modesAllowed: checking access to <https://megoth.localhost:8443/favicon.ico> by null and origin null +1ms
  solid:ACL    2 direct authentications about <https://megoth.localhost:8443/favicon.ico> +0ms
  solid:ACL    Checking auth <https://megoth.localhost:8443/favicon.ico.acl#owner> with agent null +0ms
  solid:ACL     Agent or group: Fail: not public and not logged on. +0ms
  solid:ACL      The agent/group/public check fails +0ms
  solid:ACL       Check failed: User Unauthorized +0ms
  solid:ACL    Checking auth <https://megoth.localhost:8443/favicon.ico.acl#public> with agent null +0ms
  solid:ACL     Agent or group: Ok, its public. +0ms
  solid:ACL      Origin check not needed: no origin. +0ms
  solid:ACL       Mode allowed: <http://www.w3.org/ns/auth/acl#Read> +0ms
  solid:ACL accessDenied: modeURIorReasons: ["User Unauthorized","http://www.w3.org/ns/auth/acl#Read"] +0ms
  solid:ACL  checking <http://www.w3.org/ns/auth/acl#Append> +0ms
  solid:ACL   MODE REQUIRED NOT ALLOWED: <http://www.w3.org/ns/auth/acl#Append> Denying with User Unauthorized +0ms
  solid:ACL accessDenied: checking access to <https://megoth.localhost:8443/favicon.ico> by null and origin null +0ms
  solid:ACL modesAllowed: checking access to <https://megoth.localhost:8443/favicon.ico> by null and origin null +1ms
  solid:ACL    2 direct authentications about <https://megoth.localhost:8443/favicon.ico> +0ms
  solid:ACL    Checking auth <https://megoth.localhost:8443/favicon.ico.acl#owner> with agent null +0ms
  solid:ACL     Agent or group: Fail: not public and not logged on. +0ms
  solid:ACL      The agent/group/public check fails +0ms
  solid:ACL       Check failed: User Unauthorized +0ms
  solid:ACL    Checking auth <https://megoth.localhost:8443/favicon.ico.acl#public> with agent null +0ms
  solid:ACL     Agent or group: Ok, its public. +0ms
  solid:ACL      Origin check not needed: no origin. +0ms
  solid:ACL       Mode allowed: <http://www.w3.org/ns/auth/acl#Read> +0ms
  solid:ACL accessDenied: modeURIorReasons: ["User Unauthorized","http://www.w3.org/ns/auth/acl#Read"] +0ms
  solid:ACL  checking <http://www.w3.org/ns/auth/acl#Control> +0ms
  solid:ACL   MODE REQUIRED NOT ALLOWED: <http://www.w3.org/ns/auth/acl#Control> Denying with User Unauthorized +0ms
  solid:ACL accessDenied: checking access to <https://megoth.localhost:8443/favicon.ico> by null and origin null +0ms
  solid:ACL modesAllowed: checking access to <https://megoth.localhost:8443/favicon.ico> by null and origin null +1ms
  solid:ACL    2 direct authentications about <https://megoth.localhost:8443/favicon.ico> +0ms
  solid:ACL    Checking auth <https://megoth.localhost:8443/favicon.ico.acl#owner> with agent null +0ms
  solid:ACL     Agent or group: Fail: not public and not logged on. +1ms
  solid:ACL      The agent/group/public check fails +0ms
  solid:ACL       Check failed: User Unauthorized +0ms
  solid:ACL    Checking auth <https://megoth.localhost:8443/favicon.ico.acl#public> with agent null +0ms
  solid:ACL     Agent or group: Ok, its public. +0ms
  solid:ACL      Origin check not needed: no origin. +0ms
  solid:ACL       Mode allowed: <http://www.w3.org/ns/auth/acl#Read> +0ms
  solid:ACL accessDenied: modeURIorReasons: ["User Unauthorized","http://www.w3.org/ns/auth/acl#Read"] +0ms
  solid:ACL  checking <http://www.w3.org/ns/auth/acl#Write> +0ms
  solid:ACL   MODE REQUIRED NOT ALLOWED: <http://www.w3.org/ns/auth/acl#Write> Denying with User Unauthorized +0ms
  solid:ACL accessDenied: checking access to <https://megoth.localhost:8443/favicon.ico> by null and origin null +1ms
  solid:ACL modesAllowed: checking access to <https://megoth.localhost:8443/favicon.ico> by null and origin null +0ms
  solid:ACL    2 direct authentications about <https://megoth.localhost:8443/favicon.ico> +0ms
  solid:ACL    Checking auth <https://megoth.localhost:8443/favicon.ico.acl#owner> with agent null +0ms
  solid:ACL     Agent or group: Fail: not public and not logged on. +0ms
  solid:ACL      The agent/group/public check fails +0ms
  solid:ACL       Check failed: User Unauthorized +0ms
  solid:ACL    Checking auth <https://megoth.localhost:8443/favicon.ico.acl#public> with agent null +1ms
  solid:ACL     Agent or group: Ok, its public. +0ms
  solid:ACL      Origin check not needed: no origin. +0ms
  solid:ACL       Mode allowed: <http://www.w3.org/ns/auth/acl#Read> +1ms
  solid:ACL accessDenied: modeURIorReasons: ["User Unauthorized","http://www.w3.org/ns/auth/acl#Read"] +0ms
  solid:ACL  checking <http://www.w3.org/ns/auth/acl#Append> +0ms
  solid:ACL   MODE REQUIRED NOT ALLOWED: <http://www.w3.org/ns/auth/acl#Append> Denying with User Unauthorized +1ms
  solid:ACL accessDenied: checking access to <https://megoth.localhost:8443/favicon.ico> by null and origin null +0ms
  solid:ACL modesAllowed: checking access to <https://megoth.localhost:8443/favicon.ico> by null and origin null +0ms
  solid:ACL    2 direct authentications about <https://megoth.localhost:8443/favicon.ico> +1ms
  solid:ACL    Checking auth <https://megoth.localhost:8443/favicon.ico.acl#owner> with agent null +0ms
  solid:ACL     Agent or group: Fail: not public and not logged on. +1ms
  solid:ACL      The agent/group/public check fails +0ms
  solid:ACL       Check failed: User Unauthorized +0ms
  solid:ACL    Checking auth <https://megoth.localhost:8443/favicon.ico.acl#public> with agent null +0ms
  solid:ACL     Agent or group: Ok, its public. +0ms
  solid:ACL      Origin check not needed: no origin. +0ms
  solid:ACL       Mode allowed: <http://www.w3.org/ns/auth/acl#Read> +0ms
  solid:ACL accessDenied: modeURIorReasons: ["User Unauthorized","http://www.w3.org/ns/auth/acl#Read"] +0ms
  solid:ACL  checking <http://www.w3.org/ns/auth/acl#Control> +0ms
  solid:ACL   MODE REQUIRED NOT ALLOWED: <http://www.w3.org/ns/auth/acl#Control> Denying with User Unauthorized +1ms
  solid:ACL Permissions on https://megoth.localhost:8443/favicon.ico for (none): read +0ms
  solid:ACL Permissions on https://megoth.localhost:8443/favicon.ico for public: read +0ms
  solid:get /favicon.ico on megoth.localhost +0ms
  solid:handlers GET -- Reading /Users/megoth/Projects/solid/node-solid-server/data/megoth.localhost/favicon.ico +2ms

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions