cypht-org / cypht

Cypht: Lightweight Open Source webmail aggregator [PHP, JS]. Supports IMAP/SMTP, JMAP and soon EWS
http://cypht.org
GNU Lesser General Public License v2.1
1.01k stars 163 forks source link

Login troubles when logging in via a different domain #785

Open OddSquirrel opened 1 year ago

OddSquirrel commented 1 year ago

💬 Question

Hi guys,

So, I do have a few laptops that I use interchangeably. I'd like to keep tabs on my emails on all of them, but it just isn't worth installing a fat client on every single one. Cypht to the rescue. I put it behind nginx and have no problem opening the URL whenever I please.

It's located on one of my domains, let's say cypht.domain-a.xyz. I played with the cookie settings because I don't want to log in every single time I open it. So I activated long cookie times. Funnily enough, when I put that exact same link onto my Heimdall dashboard @ dashboard.domain-b.xyz, it will ask me for my login and password every single time, even if I check 'remember me'.

I have a feeling this happens because I go from domain-a to domain-b because it works just fine, when I open Heimdall via its local IP and visit cypht.domain-a.xyz from there.

Adding CYPHT_DISABLE_FINGERPRINT=true to my environment variables didn't help. There's also CYPHT_COOKIE_DOMAIN, but the documentation doesn't give me an idea what exactly I should put in there. I tried a few variants, but none of them made a difference.

Does anybody have an idea how I could possibly get around that?

N.B.: I run Cypht in a Docker environment via Portainer and Heimdall is a great personal dashboard for browsers that runs on Docker as well.

marclaporte commented 1 year ago

@OddSquirrel If you can provide SSH access to an environment demonstrating the issue, I can assign a dev to dive in.

marclaporte commented 6 months ago

@OddSquirrel please

marclaporte commented 1 month ago

@OddSquirrel last call :-)