Skip to content

[WIP] Auth Upgrade - #420

Merged
bourgeoa merged 46 commits into
mainfrom
auth-upgrade
Oct 13, 2021
Merged

[WIP] Auth Upgrade#420
bourgeoa merged 46 commits into
mainfrom
auth-upgrade

Conversation

@jaxoncreed

@jaxoncreed jaxoncreed commented Aug 5, 2021

Copy link
Copy Markdown
Contributor

@jaxoncreed jaxoncreed mentioned this pull request Aug 16, 2021
41 tasks
@jaxoncreed

Copy link
Copy Markdown
Contributor Author

Tests fail because of the dependence on Solid-Logic

@SharonStrats SharonStrats left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to go through all individually and then test all of SolidOS locally. It would be good if we could have more tests. I will see what I can do.

Comment thread src/header/index.ts Outdated
const user = session ? sym(session.webId) : null
return async () => {
const sessionInfo = authSession.info
const user = sessionInfo.webId ? sym(sessionInfo.webId) : null

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think here is where @jeff-zucker is saying we should use currentUser() instead of sessionInfo.webId as described in https://github.com/solid/solidos/blob/main/documentation/Using_Private_Resources_In_SolidOS.md

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SharonStrats - yes that is one of the places. Also in the dashboardPane runBuildPage and also in other places. Currently we have these predicates - currentUser, defaultTestUser, offlineID, checkUser - all of which return a webid and are used in various places. This is on top of the places that authSession.webId is called directly. With things like the dashboard it's clear that we don't need to check for an actual session to display the dashboard - it can be on a private no-auth page. Other places in the code are harder to figure whether we need to be checking for the actual session rather than a "acting as logged in". The stuff in Solid Logic in is particularly hard for me to follow.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SharonStrats - could you take a look at SolidOS/solid-panes@c9f33b4#diff-c5076b653b08366bc6f16085ac8d0738cba36540a3b06b5f0fb913cdb03e664f - I tried to make the change but something is not right.

@bourgeoa
bourgeoa merged commit d2215c6 into main Oct 13, 2021
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 this pull request may close these issues.

6 participants