352
Views
6
Comments
Cross Domain Login
Hi,

I have two domains to point to the same server(same application) but when I switch the domain I lose the login session.
How to login a user automatically when transferred from one domain to another?

Is this the best solution:
https://stackoverflow.com/questions/342378/cross-domain-login-how-to-login-a-user-automatically-when-transferred-from-one/342498#342498

Thanks,
Pedro Coelho
2015-09-28 00-04-44
Pedro Coelho
Any suggestion?
2016-04-22 00-29-45
Nuno Reis
 
MVP
That seems to be the best process. I'll have a situation like that for a few days and I can do some tests of different tricks, but it looks standard.

Have you read this dicussion? I'm out of ideas besides any of those two.
2012-03-16 12-21-09
João Rosado
Staff
Hi,

I think there is alternative if both your domains are sub-domains belonging to the same domain.
Like domain1.company.com and domain2.company.com.
In this situation you can do a Set Cookie targeting for the "company.com". This way both your sites would be able to read the cookie and avoid all that logic with parameters.


Regards,
João Rosado
2015-09-28 00-04-44
Pedro Coelho
Hi,

Is different domains. I will opt for the first solution.

Thanks for the feedback
2024-01-05 16-00-17
Filipe Lourenço

How do you do logout in one domain and on the other do it automatically?

UserImage.jpg
Ashish Akolkar

HI All,

Is anybody succeeded with different domain use case here, we are also struggling for SSO implementation for 2 different domain.

But only the difference is we calling different domain portal in iframe.

https://www.outsystems.com/forums/discussion/91795/iframe-reactive-outsystems-not-getting-getuserid-info-in-client-side/# 

Thanks & Regards

Ashish




Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.