public HomeController() { var opt = new HelseIdClientOptions { ClientId = WebConfigurationManager.AppSettings["ClientId"], ClientSecret = WebConfigurationManager.AppSettings["ClientSecret"], Authority = WebConfigurationManager.AppSettings["Authority"], RedirectUri = WebConfigurationManager.AppSettings["RedirectUri"], SigningMethod = (JwtGenerator.SigningMethod)Enum.Parse(typeof(JwtGenerator.SigningMethod), WebConfigurationManager.AppSettings["SigningMethod"]), CertificateThumbprint = WebConfigurationManager.AppSettings["CertificateThumbprint"], PreselectIdp = WebConfigurationManager.AppSettings["PreselectIdp"], }; _client = new HelseIdClient(opt); }
public HomeController(IHelseIdClient client) { _client = client; }