SSO with ASP.NET Web Site & Sitefinity
Hi, Just wondering if anyone can help point me in the right direction or better still provide some code examples.
Basically I have a sitefinity site that will be controlling the security for itself an a couple of other web sites that either myself or other coleages have developed.
Unfortunatly I've never actually done anything with Claims authentication before yesturday let alone do done anything with SSO and claims.
From what I understand in SF all I need to do is set each of the apps as RelyingParties, which I've done.
I then need to add a heap of stuff to the web.config to get my apps to comunication to sitefinity and this is where I appear to be getting stuck.
Below is currently what I have in the microsoft.identitymodel that appears to be the main section that needs to be configured
I haven't done any coding yet.
When I load my app at the moment it redirects to SF fine. I login, but then it isn't redirecting back but instead just dumps the token to the page.
<
microsoft.identityModel
>
<
service
>
<
audienceUris
>
<
add
value
=
"http://localhost:51380/WearMonitoring/"
/>
</
audienceUris
>
<
federatedAuthentication
>
<
wsFederation
passiveRedirectEnabled
=
"true"
issuer
=
"http://bknewho-app/Extranet/Sitefinity/Authenticate/SWT"
realm
=
"http://bknewho-app/Extranet/"
signInQueryString
=
"redirect_uri=http://localhost:51380/WearMonitoring/"
requireHttps
=
"false"
>
</
wsFederation
>
<
cookieHandler
requireSsl
=
"false"
/>
</
federatedAuthentication
>
<
applicationService
>
<
claimTypeRequired
>
<!--Following are the claims offered by STS 'http://localhost:49973/WearMonitoring_STS/'. Add or uncomment claims that you require by your application and then update the federation metadata of this application.-->
<
claimType
type
=
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"
optional
=
"true"
/>
<
claimType
type
=
"http://schemas.microsoft.com/ws/2008/06/identity/claims/role"
optional
=
"true"
/>
</
claimTypeRequired
>
</
applicationService
>
<
issuerNameRegistry
type
=
"Microsoft.IdentityModel.Tokens.ConfigurationBasedIssuerNameRegistry, Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
>
<
trustedIssuers
>
</
trustedIssuers
>
</
issuerNameRegistry
>
</
service
>
</
microsoft.identityModel
>
Hello,
The configurations for SSO and the web.config change needs to be updated to include the SSO configs, but when configuring SSO from Sitefinity backend the changes are reflected in App_Data/Sitefinity/Configuration/SecurityConfig.config
Here is a video with the setup of SSO with Sitefinity.
All the best,
Stanislav Velikov
the Telerik team