I've added the Sitecore ADFS module to Sitecore 7.2 and it works.
Using the same module on Sitecore 8 doesn't work. I can see the MSISAuth cookies from sts. When it comes to reading the FedAuth
cookie, it always returns null FederatedAuthentication.SessionAuthenticationModule.TryReadSessionTokenFromCookie(out sessionToken)
.
Just an update on this question. What I worked out was that in Sitecore 8 the OnAuthenticateRequest
method in the WSFederationAuthenticationModule
class doesn't get fired on POST requests. It's actually in the POST request that the SessionSecurityToken
is created which is needed for the FedAuth
cookie. I've fixed the issue by overriding the WSFederationAuthenticationModule
class.