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

Public Access ("Anyone with link") does not work #1

Open
mplattner opened this issue Feb 21, 2023 · 2 comments
Open

Public Access ("Anyone with link") does not work #1

mplattner opened this issue Feb 21, 2023 · 2 comments

Comments

@mplattner
Copy link

As the title says, publicly sharing a document ("Anyone with link") does not seem to work with grist-omnibus.
The authentication page is always shown, i.e., accessing the document without logging in is not possible.

Can this be fixed by editing the dex.yaml file?

@paulfitz
Copy link
Member

Hmm that's a good point @mplattner. I don't think there is an easy way around this. Currently there is nothing special about the URL of a publicly shared document compared to regular documents, so authentication methods wrapped in front of Grist have no way to distinguish them and treat them differently. grist-omnibus uses that a wrapper like that, as opposed to other options that are under Grist's direct control.

Ideally someone would tweak Grist to use some special path prefix like /p/.... for public docs, and then when wrapping auth, omit if for URLs with that /p/ prefix.

If you have a small number of documents, you could edit traefik.yaml to manually omit the auth middleware from them. You'd need to rebuild the docker image then. So, pretty inconvenient in many respects. Sorry!

Otherwise, the SAML auth method with grist-core would work as expected (it doesn't wrap Grist).

@mplattner
Copy link
Author

Many thanks for you quick response! No problem it doesn't work out-of-the-box.

Btw, I've discovered Grist a few days ago and it's seriously great! 😊

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