photoview / photoview

Photo gallery for self-hosted personal servers
https://photoview.github.io/
GNU Affero General Public License v3.0
4.85k stars 368 forks source link

Guest user access. #930

Open jordy2254 opened 3 months ago

jordy2254 commented 3 months ago

Is your feature request related to a problem? Please describe. The ability to be able to access a photo view with a guest account that doesn't require login. Per PR #861

Describe the solution you'd like The ability to configure a guest account to access photoview that doesn't require any login

Discussion required. This will require input from the community to work out how to shape this for the future of photoview.

pcmike commented 3 months ago

Just posting to say the functionality mentioned is what I'm currently searching for and that's how I came across photoview. I like the core functionality, but in reality I just want a simple way to present photos on a domain for everyone to see (so long as I've marked the album publicly viewable). I don't want anyone to have to log in to anything.

jordy2254 commented 3 months ago

@pcmike That's great. Could you suggest from your perspective how you'd like this to work?

Please thumbs up the original post for the issue too so we can keep track of how many people want this.

pcmike commented 3 months ago

The way this would work for me would be you'd have photos.tld and when a visitor visits the domain they would just see a bunch of albums/photos/etc. They would be able to see the entire installation, so long as the albums are marked public. There would be no logging in to see and interact with things marked public. Logging in would be reserved for the admin or an actual user who has photos on the installation and when logging in they can do anything, most important of which would be choosing what's marked public or not.

kkovaletp commented 3 months ago

I'd rephrase that (please correct me if I'm wrong and suggest changes to this design):

jordy2254 commented 3 months ago

@kkovaletp implementation details should be left down to the contributer doing the implementation unless they ask for assistance, we only really want to cover the flow and intended use cases here especially this early into the conversation about the intended functionality.

@pcmike Sounds great, slightly different from what I was thinking but suites a different use case. My desired use case as an admin user would be to assign specific albums and not give user's the ability. (The same as creating a new user), Although I love your use case too so I think we should cater for both.

How would you expect to interact with the system when using guest access? Would you expect to see the login screen as now and then have a 'continue as guest' button or would you expect direct access with a login button available on the menu bar? Again maybe we could do both if there is enough demand...

pcmike commented 3 months ago

I would expect no continue as guest.. just directly displaying the albums/photos and then if an admin/user wants to interact with the installation then they can just click a simple icon somewhere that brings up a login screen. The goal should be for it to just look like a photo wall/gallery from a random visitor's perspective.

I must say.. I've been trying to get photoview to work this morning via docker and up till now I've been unsuccessful. I originally tried with having both the mariadb service with a host mounted volume for the db and a host mounted volume for the cache, no dice. I then switched it use sqlite driver and getting rid of the mariadb service and again a host mounted volume for db and cache, still no dice. Not sure what else to try. I've detailed everything on discord, but I can always create a new issue here if needed.

Thank you for even giving my opinion a voice, considering I haven't even used photoview yet. :)

uxigene commented 2 months ago

First of all, thanks for this awesome photo library. In addition I would add that guests should not be able to label faces.