YunoHost-Apps / opensondage_ynh

OpenSondage for YunoHost
https://framadate.org/
GNU Affero General Public License v3.0
16 stars 14 forks source link

When scheduling event as non-user / public-> redirected to login page #82

Open bolwerk opened 2 years ago

bolwerk commented 2 years ago

After a fresh install and upgrade - - YunoHost version: 4.3.6.2 - we have an error with the last step. We get redirected to the login page instead of creating the event.

[https://transitional.anarchaserver.org/date/]

We also see in the logs / this problem. [(https://github.com/YunoHost-Apps/opensondage_ynh/issues/50#issuecomment-546374143)]

But for us PHP solution didn't help but we also presume that is not the nature of the error.

b01xy commented 2 years ago

yes, same problem here : at the last step, opensondage drives to the admin page of the poll when loggued as a yunohost user but it drives to yunohost sso portal when not loggued as a user the application has been set as accessible to the public yunohost is installed inside a LXC container with an apache proxy on the host, could be problem of headers / redirection ?

b01xy commented 2 years ago

a workaround consist of desactivating the captive portal for this url in /etc/nginx/conf.d/mydomain.org.conf

#    access_by_lua_file /usr/share/ssowat/access.lua;

    include /etc/nginx/conf.d/mydomain.org.d/*.conf;

#    include /etc/nginx/conf.d/yunohost_sso.conf.inc;
#    include /etc/nginx/conf.d/yunohost_admin.conf.inc;
#    include /etc/nginx/conf.d/yunohost_api.conf.inc;
b01xy commented 1 year ago

A solution is to add in the admin panel > Users > Visitors : the permission OpenSondage (admin) to allow an anymous user / visitor to access this last page that sum-up the sondage

So we could close this ticket as this is not a bug but a not super evident feature :=)