- IJwtService 인터페이스 (Application Layer) - JwtSettings POCO (Options Pattern) - JwtService 구현 (Access Token 생성/검증, Refresh Token 생성) - AddJwtAuthentication/AddAuthorizationPolicies 확장 메서드 - Program.cs에 인증/인가 미들웨어 등록 (파이프라인 순서 10~11번) - NuGet: System.IdentityModel.Tokens.Jwt, Microsoft.AspNetCore.Authentication.JwtBearer
26 lines
466 B
JSON
26 lines
466 B
JSON
{
|
|
"Logging": {
|
|
"LogLevel": {
|
|
"Default": "Information",
|
|
"Microsoft.AspNetCore": "Warning"
|
|
}
|
|
},
|
|
"AllowedHosts": "*",
|
|
"ConnectionStrings": {
|
|
"DefaultConnection": ""
|
|
},
|
|
"JwtSettings": {
|
|
"SecretKey": "",
|
|
"Issuer": "SPMS",
|
|
"Audience": "SPMS",
|
|
"ExpiryMinutes": 10,
|
|
"RefreshTokenExpiryDays": 7
|
|
},
|
|
"RabbitMQ": {
|
|
"HostName": "",
|
|
"Port": 0,
|
|
"UserName": "",
|
|
"Password": "",
|
|
"VirtualHost": "/"
|
|
}
|
|
} |