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

Support in Piwigo NG app #5

Open
tdijkstra opened this issue Oct 16, 2022 · 2 comments
Open

Support in Piwigo NG app #5

tdijkstra opened this issue Oct 16, 2022 · 2 comments

Comments

@tdijkstra
Copy link

Hi,

I get a 401 error while trying to use the Piwigo NG app while using this plugin. Is it true that isn't working at the moment? Could be that I'm getting something wrong..

Tim

@tdijkstra tdijkstra reopened this Oct 16, 2022
@sshambar
Copy link
Owner

I'm using the NG app with Piwigo 13 + plugin, and it's working fine... keep in mind that the NG app uses the piwigo web services api (ws.php), so it uses passwords stored in the Piwigo database -- if you're not syncing the passwords with the external authentication system, then those logins will fail.

Also, make sure the webserver does not enforce the use of external authentication for piwigo/ws.php and piwigo/i.php locations, or they may be blocked and not allow the NG app to access the webservices api to even try the native piwigo login :)

For the plugin to support the NG app natively, it would have to be able to authenticate directly with the backend authenticator - but as that system is, by definition, "External" to piwigo, it doesn't have any way to do that (the login could be OAuth, CAS, HTTP-Auth, SAML, OpenID, Kerberos, or really anything... and the plugin would need to have client support/configuration for whatever technology was being used...)

If you understand the above and still think there's a bug, please let me know!

@daniele-athome
Copy link

daniele-athome commented Feb 24, 2023

If you use Authentik or other external authentication systems, you need to exclude these paths:

^/ws.php
^/i.php
^/_data/i/.*

Although for the last one, beware of this: Piwigo/Piwigo#1349 (long standing Piwigo issue)

And sync the password between Piwigo and the external authentication system - or even better, set a dedicated password in Piwigo so you can use it like an app password.

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

3 participants