コード例 #1
0
        public TestController(IConfiguration config)
        {
            _origin = config["fido2:origin"];

            _fido2 = new Fido2(new Fido2Configuration
            {
                ServerDomain = config["fido2:serverDomain"],
                ServerName   = "Fido2 test",
                Origin       = _origin
            }, ConformanceTesting.MetadataServiceInstance(System.IO.Path.Combine(config["fido2:MDSCacheDirPath"], @"Conformance"), _origin));
        }
コード例 #2
0
        public TestController(IOptions <Fido2Configuration> fido2Configuration)
        {
            _origin = fido2Configuration.Value.ServerDomain;

            _fido2 = new Fido2(new Fido2Configuration
            {
                ServerDomain = fido2Configuration.Value.ServerDomain,
                ServerName   = fido2Configuration.Value.ServerName,
            },
                               ConformanceTesting.MetadataServiceInstance(
                                   System.IO.Path.Combine(fido2Configuration.Value.MDSCacheDirPath, @"Conformance"), _origin)
                               );
        }