Cannot login anymore after switch to OIDC in latest update
-
After the latest update (1.32.0 / see https://forum.cloudron.io/post/73395) of BookStacks which changes the login method to use OIDC, I cannot login anymore to my instance.
It throws an error about an already existing user with the same account info but different credentials.I've tried to edit the env file to not use OIDC, but "standard", that didn't work either.
How do I restore access?
-
-
We managed to reproduce this in another instance. Strange, so this is revoked for now. Will debug.
-
Your issue seems to be related to networking actually. With OpenID the apps have to be able to reach the OpenID provider, which is running on the dashboard domain.
Can you maybe check from a webterminal inside the app if the following works (after the rollback):curl -v https://my.<your cloudron domain>/.well-known/openid-configuration
-
The issue with existing account, is happening for instances which are rather old, where the accounts were created with their UID instead of the username. To make app migration easier, we decided long ago to stick where possible to usernames, now with the change to OpenID this mapping does not work on old instances anymore. Currently looking for a possible migration path though.
-
@nebulon said in Cannot login anymore after switch to OIDC in latest update:
curl -v https://my.<your cloudron domain>/.well-known/openid-configuration
I cannot reach this URL. Not from bookstack and not from any other sytem.
Do I have to configure something under Domain & Certs before?
-
With OpenID the apps backends have to be able to reach the OpenID provider, which on Cloudron is running on the dashboard domain. So any app with OpenID will fail if your system can't call the Cloudron APIs from within its app containers.
For a start, can you resolve the dashboard domain from the webterminal of an app?
host my.domain.com
If this is a system hosted behind a router (like a homesetup) make sure hairpinning is supported.
-
@nebulon It returns the public IP address. The system is behind a reverse proxy. The webinterface is reachable over the internet. Should I be able to open https://my.<your cloudron domain>/.well-known/openid-configuration from a browser?
I only get a server error.
-
-