feat(auth): add seed data for admin and test users
This commit is contained in:
parent
e51ea08c8f
commit
d6dc0b2d36
@ -32,8 +32,8 @@ Edit: `src/Fengling.AuthService/Fengling.AuthService.csproj`
|
||||
<ItemGroup>
|
||||
<PackageReference Include="OpenIddict.AspNetCore" Version="7.2.0" />
|
||||
<PackageReference Include="OpenIddict.EntityFrameworkCore" Version="7.2.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="10.0.1" />
|
||||
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="10.0.3" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="10.0.2" />
|
||||
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="10.0.0" />
|
||||
<PackageReference Include="Serilog.AspNetCore" Version="9.0.0" />
|
||||
<PackageReference Include="Serilog.Sinks.Console" Version="6.0.0" />
|
||||
<PackageReference Include="OpenTelemetry" Version="1.11.0" />
|
||||
@ -80,7 +80,7 @@ This is the first task of implementing the Fengling Authentication Service. We'r
|
||||
|
||||
**Architecture**: ASP.NET Core Web API with OpenIddict for OAuth2/OIDC, PostgreSQL for user data.
|
||||
|
||||
**Tech Stack**: .NET 10.0, OpenIddict 7.2.0, EF Core 10.0, PostgreSQL, Serilog 9.0.0, OpenTelemetry 1.11.0.
|
||||
**Tech Stack**: .NET 10.0, OpenIddict 7.2.0, EF Core 10.0.2, PostgreSQL, Serilog 9.0.0, OpenTelemetry 1.11.0.
|
||||
|
||||
**Working Directory**: `/Users/movingsam/Fengling.Refactory.Buiding/src`
|
||||
|
||||
|
||||
154
docs/task-06-create-seed-data.md
Normal file
154
docs/task-06-create-seed-data.md
Normal file
@ -0,0 +1,154 @@
|
||||
# Task 6: Create Seed Data
|
||||
|
||||
## Task Description
|
||||
|
||||
**Files:**
|
||||
- Create: `src/Fengling.AuthService/Data/SeedData.cs`
|
||||
- Modify: `src/Fengling.AuthService/Program.cs`
|
||||
|
||||
## Implementation Steps
|
||||
|
||||
### Step 1: Create seed data class
|
||||
|
||||
Create: `src/Fengling.AuthService/Data/SeedData.cs`
|
||||
|
||||
```csharp
|
||||
using Fengling.AuthService.Models;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Fengling.AuthService.Data;
|
||||
|
||||
public static class SeedData
|
||||
{
|
||||
public static async Task Initialize(IServiceProvider serviceProvider)
|
||||
{
|
||||
using var scope = serviceProvider.CreateScope();
|
||||
var context = scope.ServiceProvider.GetRequiredService<ApplicationDbContext>();
|
||||
var userManager = scope.ServiceProvider.GetRequiredService<UserManager<ApplicationUser>>();
|
||||
var roleManager = scope.ServiceProvider.GetRequiredService<RoleManager<ApplicationRole>>();
|
||||
|
||||
context.Database.EnsureCreated();
|
||||
|
||||
var adminRole = await roleManager.FindByNameAsync("Admin");
|
||||
if (adminRole == null)
|
||||
{
|
||||
adminRole = new ApplicationRole
|
||||
{
|
||||
Name = "Admin",
|
||||
Description = "System administrator",
|
||||
CreatedTime = DateTime.UtcNow
|
||||
};
|
||||
await roleManager.CreateAsync(adminRole);
|
||||
}
|
||||
|
||||
var adminUser = await userManager.FindByNameAsync("admin");
|
||||
if (adminUser == null)
|
||||
{
|
||||
adminUser = new ApplicationUser
|
||||
{
|
||||
UserName = "admin",
|
||||
Email = "admin@fengling.local",
|
||||
RealName = "系统管理员",
|
||||
Phone = "13800138000",
|
||||
TenantId = 1,
|
||||
EmailConfirmed = true,
|
||||
IsDeleted = false,
|
||||
CreatedTime = DateTime.UtcNow
|
||||
};
|
||||
|
||||
var result = await userManager.CreateAsync(adminUser, "Admin@123");
|
||||
if (result.Succeeded)
|
||||
{
|
||||
await userManager.AddToRoleAsync(adminUser, "Admin");
|
||||
}
|
||||
}
|
||||
|
||||
var testUser = await userManager.FindByNameAsync("testuser");
|
||||
if (testUser == null)
|
||||
{
|
||||
testUser = new ApplicationUser
|
||||
{
|
||||
UserName = "testuser",
|
||||
Email = "test@fengling.local",
|
||||
RealName = "测试用户",
|
||||
Phone = "13900139000",
|
||||
TenantId = 1,
|
||||
EmailConfirmed = true,
|
||||
IsDeleted = false,
|
||||
CreatedTime = DateTime.UtcNow
|
||||
};
|
||||
|
||||
var result = await userManager.CreateAsync(testUser, "Test@123");
|
||||
if (result.Succeeded)
|
||||
{
|
||||
var userRole = new ApplicationRole
|
||||
{
|
||||
Name = "User",
|
||||
Description = "普通用户",
|
||||
CreatedTime = DateTime.UtcNow
|
||||
};
|
||||
await roleManager.CreateAsync(userRole);
|
||||
await userManager.AddToRoleAsync(testUser, "User");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Step 2: Update Program.cs to call seed data
|
||||
|
||||
Edit: `src/Fengling.AuthService/Program.cs` (add after `var app = builder.Build();`)
|
||||
|
||||
```csharp
|
||||
using (var scope = app.Services.CreateScope())
|
||||
{
|
||||
await Data.SeedData.Initialize(scope.ServiceProvider);
|
||||
}
|
||||
```
|
||||
|
||||
### Step 3: Run to create seed data
|
||||
|
||||
Run:
|
||||
```bash
|
||||
dotnet run
|
||||
```
|
||||
Expected: Logs show admin user created successfully
|
||||
|
||||
### Step 4: Test login
|
||||
|
||||
Run:
|
||||
```bash
|
||||
curl -X POST http://localhost:5000/api/auth/login \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"userName":"admin","password":"Admin@123","tenantId":1}'
|
||||
```
|
||||
Expected: Returns token (placeholder for now)
|
||||
|
||||
### Step 5: Commit
|
||||
|
||||
```bash
|
||||
git add src/Fengling.AuthService/Data/SeedData.cs src/Fengling.AuthService/Program.cs
|
||||
git commit -m "feat(auth): add seed data for admin and test users"
|
||||
```
|
||||
|
||||
## Context
|
||||
|
||||
This task creates initial seed data including admin and test users with default passwords. This allows immediate testing of the authentication service.
|
||||
|
||||
**Tech Stack**: ASP.NET Core Identity
|
||||
|
||||
## Verification
|
||||
|
||||
- [ ] SeedData class created
|
||||
- [ ] Program.cs calls seed data on startup
|
||||
- [ ] Admin user created: admin/Admin@123
|
||||
- [ ] Test user created: testuser/Test@123
|
||||
- [ ] Both users assigned to tenant 1
|
||||
- [ ] Build succeeds
|
||||
- [ ] Committed to git
|
||||
|
||||
## Notes
|
||||
|
||||
- Passwords should be changed in production
|
||||
- All users assigned to tenant 1 for initial setup
|
||||
81
src/Fengling.AuthService/Data/SeedData.cs
Normal file
81
src/Fengling.AuthService/Data/SeedData.cs
Normal file
@ -0,0 +1,81 @@
|
||||
using Fengling.AuthService.Models;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Fengling.AuthService.Data;
|
||||
|
||||
public static class SeedData
|
||||
{
|
||||
public static async Task Initialize(IServiceProvider serviceProvider)
|
||||
{
|
||||
using var scope = serviceProvider.CreateScope();
|
||||
var context = scope.ServiceProvider.GetRequiredService<ApplicationDbContext>();
|
||||
var userManager = scope.ServiceProvider.GetRequiredService<UserManager<ApplicationUser>>();
|
||||
var roleManager = scope.ServiceProvider.GetRequiredService<RoleManager<ApplicationRole>>();
|
||||
|
||||
context.Database.EnsureCreated();
|
||||
|
||||
var adminRole = await roleManager.FindByNameAsync("Admin");
|
||||
if (adminRole == null)
|
||||
{
|
||||
adminRole = new ApplicationRole
|
||||
{
|
||||
Name = "Admin",
|
||||
Description = "System administrator",
|
||||
CreatedTime = DateTime.UtcNow
|
||||
};
|
||||
await roleManager.CreateAsync(adminRole);
|
||||
}
|
||||
|
||||
var adminUser = await userManager.FindByNameAsync("admin");
|
||||
if (adminUser == null)
|
||||
{
|
||||
adminUser = new ApplicationUser
|
||||
{
|
||||
UserName = "admin",
|
||||
Email = "admin@fengling.local",
|
||||
RealName = "系统管理员",
|
||||
Phone = "13800138000",
|
||||
TenantId = 1,
|
||||
EmailConfirmed = true,
|
||||
IsDeleted = false,
|
||||
CreatedTime = DateTime.UtcNow
|
||||
};
|
||||
|
||||
var result = await userManager.CreateAsync(adminUser, "Admin@123");
|
||||
if (result.Succeeded)
|
||||
{
|
||||
await userManager.AddToRoleAsync(adminUser, "Admin");
|
||||
}
|
||||
}
|
||||
|
||||
var testUser = await userManager.FindByNameAsync("testuser");
|
||||
if (testUser == null)
|
||||
{
|
||||
testUser = new ApplicationUser
|
||||
{
|
||||
UserName = "testuser",
|
||||
Email = "test@fengling.local",
|
||||
RealName = "测试用户",
|
||||
Phone = "13900139000",
|
||||
TenantId = 1,
|
||||
EmailConfirmed = true,
|
||||
IsDeleted = false,
|
||||
CreatedTime = DateTime.UtcNow
|
||||
};
|
||||
|
||||
var result = await userManager.CreateAsync(testUser, "Test@123");
|
||||
if (result.Succeeded)
|
||||
{
|
||||
var userRole = new ApplicationRole
|
||||
{
|
||||
Name = "User",
|
||||
Description = "普通用户",
|
||||
CreatedTime = DateTime.UtcNow
|
||||
};
|
||||
await roleManager.CreateAsync(userRole);
|
||||
await userManager.AddToRoleAsync(testUser, "User");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -6,16 +6,15 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.1" />
|
||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="7.2.0" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="10.0.3">
|
||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="8.0.0" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="10.0.2">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="OpenIddict.AspNetCore" Version="7.2.0" />
|
||||
<PackageReference Include="OpenIddict.EntityFrameworkCore" Version="7.2.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="10.0.1" />
|
||||
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="10.0.3" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="10.0.2" />
|
||||
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="10.0.0" />
|
||||
<PackageReference Include="Serilog.AspNetCore" Version="9.0.0" />
|
||||
<PackageReference Include="Serilog.Sinks.Console" Version="6.0.0" />
|
||||
<PackageReference Include="OpenTelemetry" Version="1.11.0" />
|
||||
|
||||
@ -39,7 +39,6 @@ builder.Services.AddOpenTelemetry()
|
||||
|
||||
builder.Services.AddControllers();
|
||||
|
||||
builder.Services.AddEndpointsApiExplorer();
|
||||
builder.Services.AddSwaggerGen(options =>
|
||||
{
|
||||
options.SwaggerDoc("v1", new OpenApiInfo
|
||||
@ -64,6 +63,11 @@ builder.Services.AddSwaggerGen(options =>
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
using (var scope = app.Services.CreateScope())
|
||||
{
|
||||
await Data.SeedData.Initialize(scope.ServiceProvider);
|
||||
}
|
||||
|
||||
app.UseSwagger();
|
||||
app.UseSwaggerUI(options =>
|
||||
{
|
||||
|
||||
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Fengling.AuthService
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Fengling.AuthService
Executable file
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
@ -0,0 +1,20 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net10.0",
|
||||
"frameworks": [
|
||||
{
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "10.0.0"
|
||||
},
|
||||
{
|
||||
"name": "Microsoft.AspNetCore.App",
|
||||
"version": "10.0.0"
|
||||
}
|
||||
],
|
||||
"configProperties": {
|
||||
"System.GC.Server": true,
|
||||
"System.Reflection.NullabilityInfoContext.IsSupported": true,
|
||||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
{"Version":1,"ManifestType":"Build","Endpoints":[]}
|
||||
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Humanizer.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Humanizer.dll
Executable file
Binary file not shown.
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Microsoft.Build.Framework.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Microsoft.Build.Framework.dll
Executable file
Binary file not shown.
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Microsoft.CodeAnalysis.CSharp.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Microsoft.CodeAnalysis.CSharp.dll
Executable file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Microsoft.CodeAnalysis.Workspaces.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Microsoft.CodeAnalysis.Workspaces.dll
Executable file
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Microsoft.CodeAnalysis.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Microsoft.CodeAnalysis.dll
Executable file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Microsoft.EntityFrameworkCore.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Microsoft.EntityFrameworkCore.dll
Executable file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Microsoft.Extensions.Http.Polly.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Microsoft.Extensions.Http.Polly.dll
Executable file
Binary file not shown.
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Microsoft.Extensions.Resilience.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Microsoft.Extensions.Resilience.dll
Executable file
Binary file not shown.
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Microsoft.Extensions.Telemetry.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Microsoft.Extensions.Telemetry.dll
Executable file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Microsoft.IdentityModel.Logging.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Microsoft.IdentityModel.Logging.dll
Executable file
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Microsoft.IdentityModel.Protocols.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Microsoft.IdentityModel.Protocols.dll
Executable file
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Microsoft.IdentityModel.Tokens.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Microsoft.IdentityModel.Tokens.dll
Executable file
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Microsoft.OpenApi.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Microsoft.OpenApi.dll
Executable file
Binary file not shown.
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Mono.TextTemplating.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Mono.TextTemplating.dll
Executable file
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Newtonsoft.Json.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Newtonsoft.Json.dll
Executable file
Binary file not shown.
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Npgsql.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Npgsql.dll
Executable file
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/OpenIddict.Abstractions.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/OpenIddict.Abstractions.dll
Executable file
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/OpenIddict.Client.AspNetCore.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/OpenIddict.Client.AspNetCore.dll
Executable file
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/OpenIddict.Client.DataProtection.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/OpenIddict.Client.DataProtection.dll
Executable file
Binary file not shown.
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/OpenIddict.Client.SystemNetHttp.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/OpenIddict.Client.SystemNetHttp.dll
Executable file
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/OpenIddict.Client.WebIntegration.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/OpenIddict.Client.WebIntegration.dll
Executable file
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/OpenIddict.Client.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/OpenIddict.Client.dll
Executable file
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/OpenIddict.Core.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/OpenIddict.Core.dll
Executable file
Binary file not shown.
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/OpenIddict.EntityFrameworkCore.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/OpenIddict.EntityFrameworkCore.dll
Executable file
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/OpenIddict.Server.AspNetCore.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/OpenIddict.Server.AspNetCore.dll
Executable file
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/OpenIddict.Server.DataProtection.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/OpenIddict.Server.DataProtection.dll
Executable file
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/OpenIddict.Server.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/OpenIddict.Server.dll
Executable file
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/OpenIddict.Validation.AspNetCore.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/OpenIddict.Validation.AspNetCore.dll
Executable file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/OpenIddict.Validation.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/OpenIddict.Validation.dll
Executable file
Binary file not shown.
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/OpenTelemetry.Api.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/OpenTelemetry.Api.dll
Executable file
Binary file not shown.
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/OpenTelemetry.Extensions.Hosting.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/OpenTelemetry.Extensions.Hosting.dll
Executable file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/OpenTelemetry.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/OpenTelemetry.dll
Executable file
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Polly.Core.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Polly.Core.dll
Executable file
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Polly.Extensions.Http.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Polly.Extensions.Http.dll
Executable file
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Polly.Extensions.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Polly.Extensions.dll
Executable file
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Polly.RateLimiting.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Polly.RateLimiting.dll
Executable file
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Polly.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Polly.dll
Executable file
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Serilog.AspNetCore.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Serilog.AspNetCore.dll
Executable file
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Serilog.Extensions.Hosting.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Serilog.Extensions.Hosting.dll
Executable file
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Serilog.Extensions.Logging.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Serilog.Extensions.Logging.dll
Executable file
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Serilog.Formatting.Compact.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Serilog.Formatting.Compact.dll
Executable file
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Serilog.Settings.Configuration.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Serilog.Settings.Configuration.dll
Executable file
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Serilog.Sinks.Console.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Serilog.Sinks.Console.dll
Executable file
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Serilog.Sinks.Debug.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Serilog.Sinks.Debug.dll
Executable file
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Serilog.Sinks.File.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Serilog.Sinks.File.dll
Executable file
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Serilog.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Serilog.dll
Executable file
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Swashbuckle.AspNetCore.Swagger.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Swashbuckle.AspNetCore.Swagger.dll
Executable file
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Swashbuckle.AspNetCore.SwaggerGen.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Swashbuckle.AspNetCore.SwaggerGen.dll
Executable file
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Swashbuckle.AspNetCore.SwaggerUI.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/Swashbuckle.AspNetCore.SwaggerUI.dll
Executable file
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/System.CodeDom.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/System.CodeDom.dll
Executable file
Binary file not shown.
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/System.Composition.Convention.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/System.Composition.Convention.dll
Executable file
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/System.Composition.Hosting.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/System.Composition.Hosting.dll
Executable file
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/System.Composition.Runtime.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/System.Composition.Runtime.dll
Executable file
Binary file not shown.
BIN
src/Fengling.AuthService/bin/Debug/net10.0/System.Composition.TypedParts.dll
Executable file
BIN
src/Fengling.AuthService/bin/Debug/net10.0/System.Composition.TypedParts.dll
Executable file
Binary file not shown.
@ -0,0 +1,8 @@
|
||||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
}
|
||||
}
|
||||
16
src/Fengling.AuthService/bin/Debug/net10.0/appsettings.json
Normal file
16
src/Fengling.AuthService/bin/Debug/net10.0/appsettings.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"ConnectionStrings": {
|
||||
"DefaultConnection": "Host=192.168.100.10;Port=5432;Database=fengling_auth;Username=movingsam;Password=sl52788542"
|
||||
},
|
||||
"OpenIddict": {
|
||||
"Issuer": "https://auth.fengling.local",
|
||||
"Audience": "fengling-api"
|
||||
},
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*"
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user