ADFS Single sign on is not working with session state mode "UserUri" RRS feed

  • Question

  • Our asp.net website was working fine with ADFS SSO since we made a change in the session state cookie settings from "Use Cookies" to "USE URI". After making this change, fam.IsSignInResponse(request) is always false in the below code so that it redirects back to the ADFS login screen recursively.

    public List<ClaimEntity> GetClaims()
                logger.Info("Started executing GetClaims()");
                List<ClaimEntity> claims = new List<ClaimEntity>();
                // sam is configured in web.config
                var sam = FederatedAuthentication.SessionAuthenticationModule;
                logger.Info("Declaring sam");
                // fam is not
                var fam = new WSFederationAuthenticationModule();
                logger.Info("Declaring fam");
                //fam.FederationConfiguration = FederatedAuthentication.FederationConfiguration;
                fam.ServiceConfiguration = FederatedAuthentication.ServiceConfiguration;
                logger.Info("Assigning ServiceConfiguration to fam");
                var request = thisContext.Request;
                // is this the response from the STS
                if (!fam.IsSignInResponse(request))
                    // no
                    logger.Info("fam.IsSignInResponse => No");                
                    // yes  
                logger.Info("Returning the claims");
                return claims;

    Is "USE URI" session cookie mode is not supported with ADFS integrated application or any changes required in my code?

    Sreekanth Mohan

    Monday, July 2, 2018 6:30 PM

All replies

  • Any help would be much appreciated, as one of our releases is blocked because of this issue.

    Sreekanth Mohan

    Wednesday, July 4, 2018 10:43 AM