Пример #1
0
        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);
        }
Пример #2
0
 public HomeController(IHelseIdClient client)
 {
     _client = client;
 }