Reputation: 79
How to implement Singel Sign On (SSO) in cross domain MVC4 Web Applications
Upvotes: 4
Views: 9099
Reputation: 79
Finally, I am able to implement. Following are the steps I have done
Upvotes: 1
Reputation: 1039408
Same domain SSO could be easily achieved by setting the domain
property of the forms authentication cookie to the root domain and configuring the same machine keys for both applications.
Cross domain SSO is more challenging. There are different techniques to implement it. For example StackExchange uses HTML5 Local Storage. Their mechanism is described in this blog post
.
Here are some of the basic steps:
As an alternative to encrypting the username into the session identifier, the logon domain could simply store this information into a shared (between the 3 domains) data store and the session identifier will simply be an identifier of this record so that the other domains could retrieve the username from this shared data store.
Upvotes: 13