Automatic Log-in with window pop


I’m having a problem solving the auto-login integration of our app. We deployed our main app and mattermost from different servers

main app -
mattermost -

As a user of our main app, when I clicked a button linking to mattermost. A window will pop-up and expected to auto-login on the mattermost window pop-up.

I’ve tried setting up the cookie to make the auto-login, but the problem is the main app and the mattermost have different domain. This is a bad implementation due to security issues.

Are there any viable solution to make this kind of interaction viable?

Thanks in advance!

Hi @Fhrey, these previous threads may help: