I have found changes in the file DotNetNuke.Services.Authentication.AuthenticationConfigBase.cs when I am upgrading an Authentication provider from DNN495 to DNN521
old AuthenticationConfigBase.cs (DNN495):
----------------------------------------------
using System;
using System.Collections;
using System.ComponentModel;
namespace DotNetNuke.Services.Authentication
{
// Summary:
// The AuthenticationConfigBase class provides base configuration class for
// the Authentication providers
public abstract class AuthenticationConfigBase
{
protected AuthenticationConfigBase(int portalID);
protected int AuthenticationModuleID { get; }
[Browsable(false)]
public Hashtable ModuleSettings { get; }
[Browsable(false)]
public int PortalID { get; set; }
}
}
--------------------------------------------------------------
New AuthenticationConfigBase.cs (DNN521)
--------------------------------------------------------------
using System;
using System.ComponentModel;
namespace DotNetNuke.Services.Authentication
{
[Serializable]
public abstract class AuthenticationConfigBase
{
protected AuthenticationConfigBase(int portalID);
[Browsable(false)]
public int PortalID { get; set; }
}
}
----------------------------------------------------------
Here is the code that doesn't work anymore:
ModuleController controller = new ModuleController();
controller.UpdateModuleSetting(config.AuthenticationModuleID, "AuthenID_Enabled", config.Enabled.ToString());
controller.UpdateModuleSetting(config.AuthenticationModuleID, "AuthenID_MerchantName", config.MerchantName);
controller.UpdateModuleSetting(config.AuthenticationModuleID, "AuthenID_MerchantPassword", config.MerchantPassword);
controller.UpdateModuleSetting(config.AuthenticationModuleID, "AuthenID_IncludeHelp", config.IncludeHelp.ToString());
the thing is that this site DNN495 should later be upgraded to DNN521 and if this component is working differently?