Skip to content

Commit ef0501e

Browse files
authored
Update app settings configuration in Demo project (#307)
1 parent 57d9436 commit ef0501e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Demo/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public void ConfigureServices(IServiceCollection services)
4848
{
4949
options.ServerDomain = Configuration["fido2:serverDomain"];
5050
options.ServerName = "FIDO2 Test";
51-
options.Origins = new HashSet<string> { Configuration["fido2:origin"] };
51+
options.Origins = Configuration.GetSection("fido2:origins").Get<HashSet<string>>();
5252
options.TimestampDriftTolerance = Configuration.GetValue<int>("fido2:timestampDriftTolerance");
5353
options.MDSCacheDirPath = Configuration["fido2:MDSCacheDirPath"];
5454
})

Demo/appsettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"fido2": {
33
"serverDomain": "localhost",
4-
"origin": "https://localhost:44329",
4+
"origins": [ "https://localhost:44329" ],
55
"timestampDriftTolerance": 300000
66
},
77
"Logging": {

0 commit comments

Comments
 (0)