Single Sign-On Problems in 2.9

Jun 16, 2014 at 2:12 AM
There seems to be a problem with single sign-on in 2.9. If you look at the SingleSignOn property in BlogConfig.cs, you'll see that regardless of the web.config setting it is always false:
public static bool SingleSignOn
        {
            get
            {
                if (_singleSignOn == null)
                {
                    string setting = WebConfigurationManager.AppSettings["BlogEngine.SingleSignOn"];
                    if (!string.IsNullOrEmpty(setting))
                    {
                        bool value;
                        if (bool.TryParse(setting, out value))
                        {
                            _singleSignOn = value;
                        }
                    }
                    _singleSignOn = false;
                }
                return (bool)_singleSignOn;
            }
        }
When I fix this and re-build, the property looks like it get properly read from the web.config, but manual login no longer works (although logging-in works just fine when SingleSignOn is false). If I try to login with SingleSignOn=true, it looks like the code is getting executed properly, but I always get a "Login Failed" message. Single sign-on functionality also doesn't work, even if the code reads the property as 'true'.