External site (embeded) OIDC login
-
Hello.
For ease of use I wanted to embed some cloudron apps (Miniflux, Linkwarden, Etherpad) into the nextcloud interface. First, I embed them with the NC external-sites app. Then, I set the
frame-ancestors nextcloud.domain.com;in the security settings for each app.That all works fine until a user wants to log in to these apps. The apps display correctly, but when hitting the OIDC login button, it is impossible to log in to them.
Firefox Can’t Open This Page To protect your security, my.domain.com will not allow Firefox to display the page if another site has embedded it. To see this page, you need to open it in a new window.Beeing able to resolve this would also make it possible to embed the Cloudron dashboard as external site to Nextcloud, easily giving access to a repository of all apps as well.
Thanks.
-
-
J joseph moved this topic from Nextcloud
-
So currently the login flow pages are served up with content security policy headers to not allow being embedded in another domain/origin. The reason for this is to prevent clickjacking attacks and was explicitly done that way.
I guess for this we would need a csp setting for the OpenID provider where one can allow specific domains/origins.