Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Assign dynamic values to UseWsFederationAuthentication MetadataAddress and Wtrealm

Vote:
 

We have two websites and implemented SSO for one site. Now we need to implement SSO second website with different MetadataAddress&Wtrealm but we have an issue with
WsFederationAuthenticationOptions(){
MetadataAddress="",
Wtrealm="",
}

Every site has its own meta address and Wtrealm. How can we assign these values dynamically?

Site 1:

WsFederationAuthenticationOptions(){
MetadataAddress="abc.xml",
Wtrealm="site1",
}

Site 2:

WsFederationAuthenticationOptions(){
MetadataAddress="xyz.xml",
Wtrealm="site2",
}

#286831
Sep 08, 2022 12:15
Kumar - Sep 08, 2022 16:02
Thanks Minesh, my websites URL to federation server metadata is different for every site so how can we assign the metadata URL dynamically?
Vote:
 

It depends how your current login flow being implemented. In a nutshell, you can follow the implementation in the article below, most the concepts are still relevant. From memory, there is a key area you need to set authentication mode to passive

https://www.dotnetcurry.com/windows-azure/1166/aspnet-mvc-multiple-adfs-owin-katana

#286896
Sep 09, 2022 0:46
Vote:
 

Thank Vincent for you answer!  That help me solve my problem

#293618
Dec 23, 2022 22:17
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.