Closed linonetwo closed 4 years ago
Oh, there is log
solid:authentication User is already authenticated as https://zhihucrawler.localhost:8443/profile/card#me +41ms
on the up, so actually NSS get the userID, but just not passing it to handlers/allow.js
, it is a NSS bug.
I'm login and fetching as:
but it failed with 401, after digging NSS, I found in following line
https://github.com/solid/node-solid-server/blob/dcc5f9074669bb5c0a936ac3450aba18b16fd13a/lib/handlers/allow.js#L51-L52
the
req.session.userId
isundefined
, which resulted in fail in ACL check.If I manually change that line to
then fetch will be a success, ACL check passed.
So the question is, why
req.session.userId
isundefined
in NSS? Issolid-auth-cli
not attaching such field inreq.session
?