jasperweyne / PiwigoOpenIdConnect

A plugin for Piwigo to enable OpenID Connect based login
Apache License 2.0
10 stars 8 forks source link

ERR_CONNECTION_REFUSED after authenticating #6

Closed tkupek closed 3 years ago

tkupek commented 3 years ago

Thank you for providing this plugin. It's exactly what we need.

I'm trying to activate the authorization code flow on a fresh Piwigo 11.3.0 installation. I filled out Issuer URL, Client ID and Client secret and entered the valid redirect URI in Keycloak (OpenID provider). After authenticating, I get redirected to /plugins/OpenIdConnect/auth.php?state=...&session_state=...&code=... which seems correct, but the site does not respond and I get a ERR_CONNECTION_REFUSED.

I tried both, testing the flow via admin panel and activating it. Same problem. The Piwigo installation does not use HTTPS, as it's a test instance.

Any ideas what causes this? If you contact me via email I can provide you access to the test instance.

tkupek commented 3 years ago

It was related to the missing HTTPS.