Forms Authentication across multiple apps/servers
From: Doug Rutledge via .NET 247 (anonymous_at_dotnet247.com)
Date: 06/05/04
- Next message: Lev Vigdorov via .NET 247: "Forms authentication: Capturing User.Identity.Name in a classic ASP page."
- Previous message: Lev Vigdorov via .NET 247: "Forms authentication - reference from classic ASP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sat, 05 Jun 2004 12:32:42 -0700
We have a situation where we want multiple applications on multiple servers to share security. For instance server1.domain.com/web1 is the web where all authentication is to be done. server2.domain.com/web2 is another app that only exists on another server (we need it to be isolated) that needs to share security with the other app. I found an example on how to accomplish this and for the most part it works. I also set up the encrypt/decrypt keys in the config file, set the authentication cookie to be domain wide (domain.com).
Now, when I go to server2.domain.com/web2, I get redirected to server1.domain.com/web1 for authentication. I enter the credentials, and instead of getting redirected back to server2.domain.com/web2, I get sent to server1.domain.com/web2, which does not exist. I checked the return url in the querysting on the login page, and it does not include the full URL. Does anyone have an idea on how to get around this, or how to make the ReturnUrl include the entire URL of the originally requested page, not just the web and page name?
Thanks,
Doug
--------------------------------
From: Doug Rutledge
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>hykv3brVUUG0sA9ehoLbCg==</Id>