Hi,
I’m getting an issue after integration Okta in my ASP.NET (framework 4.6.1) application from my home controller.
Error: The type IAuthenticationManager does not have an accessible constructor.
I’ve added these lines in UnityConfig.RegisterComponents method
container.RegisterType<IAuthenticationManager>(new InjectionFactory(o => HttpContext.Current.GetOwinContext().Authentication));
container.RegisterType<IAuthenticationClient>(new InjectionFactory(o => new AuthenticationClient(
new OktaClientConfiguration()
{
OktaDomain = ConfigurationManager.AppSettings["okta:OktaDomain"],
Token = ConfigurationManager.AppSettings["okta:Token"],
})));
and calling this funciton from Global.cs -> Application_Start method.
Can anybody help me with this, please?