After viewing the PluralSite videos on Identity and Access Control, and basically getting everything set up that I need to (I have a running local instance of Thinktecture Identity Server on my machine, as well as the Identity and Access vs2012 extension), I can not get two web applications in the same solution to authenticate against the Identity Server.
Currently, they are both requiring me to log into the id sever, which is not what I want, I want to be able to log into the Id server once, and be authenticated for both sites.
Here are the parts of the web.config which I THINK determine how this should go:
What exactly is the role of "realm"? Does this need to be a real URL, or can it be treated like a namespace? I'm imaging realm must come into play when trying to use the same security token issued by the Id Server across multiple sites.
<system.identityModel.services>
<federationConfiguration>
<cookieHandler requireSsl="false" />
<wsFederation passiveRedirectEnabled="true" issuer="https://MyIdServer.com/idsvr/issue/wsfed" realm="http://MyLocalServerRunningIISExpress:55495/" reply="http://MyLocalServerRunningIISExpress:55495/" requireHttps="false" />
</federationConfiguration>
</system.identityModel.services>
How do audienceUris work? I'm assuming if I want to have the one security token used across multiple sites, I need to have each site's URL represented in the audienceUris section?
<system.identityModel>
<identityConfiguration>
<claimsAuthenticationManager type="SSO.Security.ClaimsAuthenticationManager, SSO.Security" />
<audienceUris>
<add value="http://MyLocalServerRunningIISExpress:55495/" />
<add value="http://MyLocalServerRunningIISExpress:53133/" />
</audienceUris>
</identityConfiguration>
</system.identityModel>
The other web.config file for the second site is just like the sections above, but with the port numbers changed on the URL's.
Again, I DO have the Id Srv passing back a token to me that authenticates me for ONE site, but I cannot for the life of me get it working for two.
I'm guessing this is a config issue, or maybe the fact that I'm running two instances of IIS Express on two port numbers instead of having a real IIS server invovled and using a URL instead?