Help Configuring FormsAuthentication Across Mutiple Apps

Using IIS 7.5 with several web sites. I want users to only login once and access all related apps. Only some of the folders are protected(requiring authentication). There are various levels of authorization, so the web.config in each folder specifies which roles are allowed. Therefore many subfolders require a web.config.

I can move from searchApp1 to searchApp2 without another login, and from search.top.com to searchApp3. But if I login to searchApp3 first I am prompted to login again at search.top.com.

The web.config in search.top.com root has this:
<roleManager enabled="false"></roleManager>
		
<authentication mode="Forms">
    <forms
            name=".AUTHCOOKIE"
            protection="All" 
            path="/"
            domain="search.top.com"
            loginUrl="~/login.aspx" 
            defaultUrl="~/records.aspx" 
            slidingExpiration="false"
            enableCrossAppRedirects="true"
            timeout="5" />
</authentication>

    <machineKey
           validationKey="123123123123123123123123123123123123123123123123"
            decryptionKey="123123123123123123123123123123123123123123123123"
           validation="SHA1"/>

Open in new window

<roleManager enabled="false"></roleManager>
The web.config in searchApp1 folder has this:       </authorization>
<authorization>
	<allow roles="role1, role5, Administrators" />
	<deny users="*" />
</authorization>

Open in new window

The web.config in search.App3 (application) has this:
<authentication mode="Forms">
	<forms 
                name=".AUTHCOOKIE"
                protection="All"
                path="/"
                domain="search.top.com"
                loginUrl="login.aspx" 
                defaultUrl="default.aspx" 
                slidingExpiration="false"
                enableCrossAppRedirects="true"
                timeout="5">
	</forms>
</authentication>

 <machineKey
            validationKey="123123123123123123123123123123123123123123123123"
            decryptionKey="123123123123123123123123123123123123123123123123"
            validation="SHA1"/>
        
<authorization>
            <deny users="?" />
</authorization>

Open in new window


schema.jpg
4ncidAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bob LearnedCommented:
It looks like you are trying to use the same authentication ticket, with the change to the machineKey in the machine.config.  Are these sites in the same domain?

Single Sign On (SSO) for cross-domain ASP.NET applications: Part-I - The design blue print
http://www.codeproject.com/Articles/106439/Single-Sign-On-SSO-for-cross-domain-ASP-NET-applic
0
4ncidAuthor Commented:
No - all are not in the same domain.  I will study the link you sent.  Thanks Bob.
0
Bob LearnedCommented:
Part II is here:

Single Sign On (SSO) for cross-domain ASP.NET applications: Part-II - The implementation
http://www.codeproject.com/Articles/114484/Single-Sign-On-SSO-for-cross-domain-ASP-NET-appl
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

4ncidAuthor Commented:
This looks like it may be more complicated than I prefer. If this is the only solution, we may have to reconsider our goals.  Will confer with staff and report back. Thanks again Bob.
0
Bob LearnedCommented:
You might think about OpenID, OAuth, ...

Introducing Single Sign-on to an existing ASP.NET MVC application
https://www.simple-talk.com/dotnet/asp.net/introducing-single-sign-on-to-an-existing-asp.net-mvc-application/
0
4ncidAuthor Commented:
I have to "abandon" this project for more pressing issues. Thanks for your help Bob.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.