Skip to content

You can login in a non existing pod (mashlib flavor) #50

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

Open
bourgeoa opened this issue Feb 5, 2025 · 3 comments
Open

You can login in a non existing pod (mashlib flavor) #50

bourgeoa opened this issue Feb 5, 2025 · 3 comments

Comments

@bourgeoa
Copy link

bourgeoa commented Feb 5, 2025

Either with subdomain or mashlib if you use a not existing podname https://<non existing podname>.solidcommunity.net:8443

This seems very strange for a user.

Could CSS consider that the pod do not exist and return something like pod not found ?

@joachimvh
Copy link
Member

CSS return status codes are based on solid/specification#14 (comment), which states that the response should be 401/403 if the client does not have read access, independent of the resource's existence. So the CSS has to return a 401 there. Perhaps after logging in, mashlib could do an additional request first to see if the request succeeds when authenticated before redirecting the user?

@bourgeoa
Copy link
Author

bourgeoa commented Feb 6, 2025

I think I understand your point.
But to my understanding in the described situation we do not have a Solid Resource until there is a valid pod, and then here not bind to Solid specification.

@joachimvh
Copy link
Member

I get what you're saying, but this would require some big changes to make the server handle these cases, as the server would have to swap between being a "solid server" and not for certain resources. I think that one of the reasons this is also required is so the server doesn't leak information about resources existing or not based on the status codes.

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

No branches or pull requests

2 participants