Open staler opened 5 years ago
@staler Did you find any solution for this?
I had the same problem.
It seems that iOS Safari doesn't save Cookie when Origin != Host.
The server returns 302 Found
response with Set-Cookie
header for __Host-nc_sameSiteCookielax
, but Safari doesn't set it.
I'm experiencing the same with NC 17 (but this goes all the way back to 14). There seems to be a difference in triggering a SML response when:
In the first case, the process stops, no redirect to SAML happens. In the headers, I see the following (only main differences shown):
Cookie: ....xxx... __Host-nc_sameSiteCookielax=true
location:
In the second case, I get redirected to SAML for the login screen and all works. In the headers, I see the following (only main differences shown):
Cookie: .... __Host-nc_sameSiteCookielax=true; __Host-nc_sameSiteCookiestrict=true
location: https://login.xxx.yy/saml/saml2/idp/SSOService.php?SAMLRequest=pZJNbxo...
Either way, this issue is solved by applying the one-row fix in #248
Steps to replicate it:
get a apple or mac device open safari log-in
Expected behaviour
User get loged in to nextcloud and see his files
Actual behaviour
users on an mac/ ios device getting a too many redirects error in safari
Server configuration
Nextcloud Versie: 15.0.2.0 Apps geïnstalleerd: 31 App updates beschikbaar: 0
PHP Versie: 7.2.14 Geheugenlimiet: 512 MB Max verwerkingstijd: 3600 Max uploadomvang: 511 MB
Database Type: mysql Versie: 10.3.12 Grootte: 1,4 MB
Where did you install Nextcloud from: installatron
List of activated apps: Accessibility 1.1.0 Officieel
Activity 2.8.2 Officieel
Auditing / Logging 1.5.0 Officieel
Collaborative tags 1.5.0 Officieel
Deleted files 1.5.0 Officieel
Federation 1.5.0 Officieel
File sharing 1.7.0 Officieel
Log Reader 2.0.0 Officieel
Monitoring 1.5.0 Officieel
Nextcloud announcements 1.4.0 Officieel
Notifications 2.3.0 Officieel
Password policy 1.5.0 Officieel
PDF viewer 1.4.0 Officieel
Share by mail 1.5.0 Officieel
SSO & SAML authentication 2.1.1 Officieel
Support 1.0.0 Officieel
Text editor 2.7.0 Officieel
Theming 1.6.0 Officieel
Update notification 1.5.0 Officieel
Usage survey 1.3.0 Officieel
Versions 1.8.0 Officieel
Video player
Nextcloud configuration:
Insert your Nextcloud log here
Insert your browser log here, this could for example include:
a) The javascript console log b) The network log c) ... i dont have a browser log, but this is the log from the hosting server