ソースを参照

Add basic index.html

Lukas Angerer 2 年 前
コミット
c583cc32b1
4 ファイル変更12 行追加16 行削除
  1. 1 0
      Passwordless.csproj
  2. 1 0
      Program.cs
  3. 0 16
      Properties/launchSettings.json
  4. 10 0
      wwwroot/index.html

+ 1 - 0
Passwordless.csproj

@@ -8,6 +8,7 @@
   </PropertyGroup>
 
   <ItemGroup>
+    <PackageReference Include="Fido2.AspNet" Version="3.0.1" />
     <PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.1" />
     <PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
   </ItemGroup>

+ 1 - 0
Program.cs

@@ -14,6 +14,7 @@ if (app.Environment.IsDevelopment())
     app.UseSwaggerUI();
 }
 
+app.UseStaticFiles();
 app.UseHttpsRedirection();
 
 var summaries = new[]

+ 0 - 16
Properties/launchSettings.json

@@ -1,13 +1,5 @@
 {
   "$schema": "http://json.schemastore.org/launchsettings.json",
-  "iisSettings": {
-    "windowsAuthentication": false,
-    "anonymousAuthentication": true,
-    "iisExpress": {
-      "applicationUrl": "http://localhost:27682",
-      "sslPort": 44334
-    }
-  },
   "profiles": {
     "http": {
       "commandName": "Project",
@@ -28,14 +20,6 @@
       "environmentVariables": {
         "ASPNETCORE_ENVIRONMENT": "Development"
       }
-    },
-    "IIS Express": {
-      "commandName": "IISExpress",
-      "launchBrowser": true,
-      "launchUrl": "swagger",
-      "environmentVariables": {
-        "ASPNETCORE_ENVIRONMENT": "Development"
-      }
     }
   }
 }

+ 10 - 0
wwwroot/index.html

@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <title>Passwordless Demo</title>
+</head>
+<body>
+<h1>Passwordless Demo</h1>
+<button id="start">Start</button>
+</body>
+</html>