The scenario:
FedAuth
cookie that (if I understand correctly) refer to the token stored in SharePoint.For instance, URL /thisurl/
should be handled by the legacy SP application, and /migratedurl/
should be handled by the new ASP.NET MVC application.
I have the following questions/issues:
My understanding of SharePoint, federated identity, ADFS etc. is at best limited, so my description of our system might be lacking, there might be things that I misunderstand, there might be terminology that I don't get right etc. Please let me know if there are changes I can make to the question to make it clearer.
What you have in ADFS terms is two separate Relying Party (RP) viz. the SP site and the new MVC application.
ADFS applies SSO across them.
Your new app. will be claims-based i.e. you need to add WS-Fed functionality via WIF (older) or OWIN (new and shiny).
Refer: Use the OWIN Security Components in ASP.NET to Implement Web Sign On with ADFS for a good OWIN / ADFS example.
So what happens is that a user logs in to SP. They now have both SP and ADFS sets of cookies. They now log in to the MVC app. They have no app. cookies so they are redirected to ADFS. ADFS / OWIN sees they have ADFS cookies so creates app. cookies and the user is seamlessly signed in.
The cleanest deployment method would be to make the app. a new IIS web site.
This has two advantages: