diff --git a/src/appsettings.Development.json b/src/appsettings.Development.json
new file mode 100644
index 0000000..642a536
--- /dev/null
+++ b/src/appsettings.Development.json
@@ -0,0 +1,7 @@
+{
+ "Logto": {
+ "Endpoint": "https://en7hny.logto.app/",
+ "AppId": "n863z6tazsbjtn8b113x7",
+ "AppSecret": "1J4FpfWaEzPsGKALpBnhT5dqoYY19Bta"
+ }
+}
\ No newline at end of file
diff --git a/src/chat.API/Program.cs b/src/chat.API/Program.cs
index 666a9c5..a1cc5bb 100644
--- a/src/chat.API/Program.cs
+++ b/src/chat.API/Program.cs
@@ -1,11 +1,6 @@
+using chat.API.Extensions;
var builder = WebApplication.CreateBuilder(args);
-// Add services to the container.
-
-builder.Services.AddControllers();
-// Learn more about configuring OpenAPI at https://aka.ms/aspnet/openapi
-builder.Services.AddOpenApi();
-
var app = builder.Build();
// Configure the HTTP request pipeline.
@@ -16,6 +11,7 @@ if (app.Environment.IsDevelopment())
app.UseHttpsRedirection();
+app.UseAuthentication();
app.UseAuthorization();
app.MapControllers();
diff --git a/src/chat.API/appsettings.Development.json b/src/chat.API/appsettings.Development.json
index 0c208ae..10f68b8 100644
--- a/src/chat.API/appsettings.Development.json
+++ b/src/chat.API/appsettings.Development.json
@@ -4,5 +4,6 @@
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
- }
+ },
+ "AllowedHosts": "*"
}
diff --git a/src/chat.API/chat.API.csproj b/src/chat.API/chat.API.csproj
index 52dd1c3..7149008 100644
--- a/src/chat.API/chat.API.csproj
+++ b/src/chat.API/chat.API.csproj
@@ -10,4 +10,8 @@
+
+
+
+
diff --git a/src/chat.API/chat.API.http b/src/chat.API/chat.API.http
deleted file mode 100644
index 9bac374..0000000
--- a/src/chat.API/chat.API.http
+++ /dev/null
@@ -1,6 +0,0 @@
-@chat.API_HostAddress = http://localhost:5297
-
-GET {{chat.API_HostAddress}}/weatherforecast/
-Accept: application/json
-
-###
diff --git a/src/chat.Infrastructure/chat.Infrastructure.csproj b/src/chat.Infrastructure/chat.Infrastructure.csproj
index b760144..976d22c 100644
--- a/src/chat.Infrastructure/chat.Infrastructure.csproj
+++ b/src/chat.Infrastructure/chat.Infrastructure.csproj
@@ -6,4 +6,12 @@
enable
+
+
+
+
+
+
+
+