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

[WIP] Auth Upgrade #420

Merged
merged 46 commits into from
Oct 13, 2021
Merged

[WIP] Auth Upgrade #420

merged 46 commits into from
Oct 13, 2021

Conversation

jaxoncreed
Copy link
Contributor

@jaxoncreed jaxoncreed commented Aug 5, 2021

@jaxoncreed jaxoncreed mentioned this pull request Aug 16, 2021
41 tasks
@jaxoncreed
Copy link
Contributor Author

Tests fail because of the dependence on Solid-Logic

Copy link
Contributor

@SharonStrats SharonStrats left a comment

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.

const user = session ? sym(session.webId) : null
return async () => {
const sessionInfo = authSession.info
const user = sessionInfo.webId ? sym(sessionInfo.webId) : null
Copy link
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
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
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