I have a somewhat related problem but am also not sure how to solve it.
I also did the migration recently and after that moved to a new server with the yunohost backup function.
Here is the setup I got:
Domain1: example.org
Domain2: portal.example.com (com vs. org and subdomain vs. )
The root domain example.org is only used for admin purposes and as the CNAME destination for subdomain, such as portal.example.org.
There is no app installed on example.org, but some on subdomains of that root domain.
portal.example.com should be the domain that is available to users publicly, so they should open that portal and login there, I don’t mind if the SSO takes them to the root domain, but the login does not work starting on the subdomain, but only when starting on the root domain and this only for users.
Cases:
- A user goes to portal.example.com and tries to login nothing will happen.
- A user goes to example.org and tries to login it will work and the user is shown as logged in.
- A user that is part of the admin group can login on either and it works.
Any tips welcome how to trouble shoot this problem!
Is there any SSO setup I can look at? What setting defines which user is allowed to login on which portal page?
I just saw another problem now. On cloud.example.com we have Nextcloud running, when I open cloud.example.com I will be taken to nextcloud login page, the login works, when I logout it will throw me back to some old domain that is not setup on that Yunohost anymore.
That was a setting in the Nextcloud config.php that I forgot existed and that I am not sure about it if was changed by me or set during the setup.