I have a client that recently converted a website to use one source code base for multiple domains that point back to the
same website. The web application acts as a portal for properties to be managed.The user may have one property or many they can manage.
The user can go to any of the properties urls at first and login.If the user has many properties to manage the dropdown box will be loaded with the other properties. When the different property is selected from the dropdown box is the url information is grabbed from the database then a Response.Redirect is done in
the code behind page.For example Current URL logged into (www.hilton.com), the user selected (www.springmanner.com) from the dropdown box.What happens is that even though, the selected URL still points back to the same website. The Login control using Form Authentication asks the user to login again. The FormAuthentication is loss because the switch in Domains, eventhough the different
Domains still point back to the same website IP address.
I have read how to achieve this if the domains where sub domains that seems pretty straight (i.e. rabbit.house.com, bear.house.com).The application uses InProc for session mode, I realize that this mode may not work for this scenario. How can I accomplish this using ASP.NET without using Windows Live ID or OpenID? Thanks for your help in Advance!!
Member
2 Points
4 Posts
Single Sign on using ASP.NET Form Authentication Cross Domain
Mar 30, 2011 11:00 AM|encoredatas|LINK
I have a client that recently converted a website to use one source code base for multiple domains that point back to the same website. The web application acts as a portal for properties to be managed. The user may have one property or many they can manage. The user can go to any of the properties urls at first and login. If the user has many properties to manage the dropdown box will be loaded with the other properties. When the different property is selected from the dropdown box is the url information is grabbed from the database then a Response.Redirect is done in the code behind page. For example Current URL logged into (www.hilton.com), the user selected (www.springmanner.com) from the dropdown box. What happens is that even though, the selected URL still points back to the same website. The Login control using Form Authentication asks the user to login again. The FormAuthentication is loss because the switch in Domains, eventhough the different Domains still point back to the same website IP address. I have read how to achieve this if the domains where sub domains that seems pretty straight (i.e. rabbit.house.com, bear.house.com). The application uses InProc for session mode, I realize that this mode may not work for this scenario. How can I accomplish this using ASP.NET without using Windows Live ID or OpenID? Thanks for your help in Advance!!
session asp.net
Member
1 Points
13 Posts
Re: Single Sign on using ASP.NET Form Authentication Cross Domain
Mar 30, 2011 01:06 PM|mbentley|LINK
Have you tried setting the Forms Name on all sites to the same name in web.config? Something like:
<system.web>
<authentication mode="Forms">
<forms name=".MegaCorpSites" loginUrl="~/Login.aspx" defaultUrl="~/Welcome.aspx" />
</authentication>
<div> </system.web></div>Member
70 Points
169 Posts
Re: Single Sign on using ASP.NET Form Authentication Cross Domain
Mar 31, 2011 06:21 AM|castlehills|LINK
I don't think you would be able to share the session between those domains. You may if the session is kept out of proc.
session asp.net
All-Star
18089 Points
1902 Posts
Re: Single Sign on using ASP.NET Form Authentication Cross Domain
Apr 04, 2011 02:40 AM|Zizhuoye Chen - MSFT|LINK
Hi,
Forms Authentication use cookie to authenticate user account which can not be share in different domain. Cookie is domain scope.
I think you can try to use other SSO solution.
You can check these link:
http://www.codeproject.com/KB/aspnet/CrossDomainSSOModel.aspx(Cross-Domain SSO solution)
http://aspalliance.com/1513_Cross_Site_Authentication_and_Data_Transfer.all
Hope this can help you.
session asp.net
If you have any feedback about my replies, please contact msdnmg@microsoft.com
Microsoft One Code Framework
Member
90 Points
52 Posts
Re: Single Sign on using ASP.NET Form Authentication Cross Domain
Apr 04, 2011 09:08 AM|dheerajswami|LINK
Best working Example is : http://www.codeproject.com/KB/aspnet/CrossDomainSSOModel.aspx
session asp.net
Sincerely,
Dheeraj Swami
MCPD, MCTS
http://www.dotnetsolutions.co.in/
Member
2 Points
4 Posts
Re: Single Sign on using ASP.NET Form Authentication Cross Domain
Apr 04, 2011 09:12 AM|encoredatas|LINK
Thanks! This what I was looking for. I really appreciate it.
session asp.net