675ef64975
TaxBaik CI/CD / build-and-deploy (push) Successful in 1m31s
IMPLEMENTATION:
- Create 4 FastEndpoints Endpoint classes:
- LoginEndpoint: POST /api/auth/login
- RefreshTokenEndpoint: POST /api/auth/refresh
- ChangePasswordEndpoint: POST /api/auth/change-password
- ResetPasswordEndpoint: POST /api/auth/reset-password
- Backup AuthController.cs (no longer active)
- Add FastEndpoints.Endpoint<TRequest, TResponse> pattern
- Implement proper DI with AuthService injection
- Use Policies("Bearer") for authorization
- Proper error handling with ThrowError()
ARCHITECTURE:
- Start of Phase 1: Core Auth APIs
- Endpoints follow FastEndpoints conventions
- DTOs: LoginRequest, RefreshTokenRequest, ChangePasswordRequest, ResetPasswordRequest, TokenPairResponse, MessageResponse
- AllowAnonymous for login/refresh/reset
- Bearer policy for change-password
VERIFICATION:
✅ dotnet build: 0 errors, 0 warnings
✅ dotnet test: 26/26 passed
✅ FastEndpoints auto-discovery working (no endpoint errors)
✅ JWT validation passes
Next Phase: BlogController and remaining APIs
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
53 lines
1.3 KiB
JSON
53 lines
1.3 KiB
JSON
{
|
|
"Logging": {
|
|
"LogLevel": {
|
|
"Default": "Information",
|
|
"Microsoft.AspNetCore": "Warning"
|
|
}
|
|
},
|
|
"ConnectionStrings": {
|
|
"Default": "Host=localhost;Database=taxbaikdb;Username=taxbaik;Password=taxbaik123"
|
|
},
|
|
"Jwt": {
|
|
"SecretKey": "dev-secret-key-change-in-production-min-32-chars!"
|
|
},
|
|
"App": {
|
|
"PublicBaseUrl": "http://178.104.200.7/taxbaik"
|
|
},
|
|
"ApiClient": {
|
|
"BaseUrl": "http://localhost:5001/taxbaik/api/"
|
|
},
|
|
"Telegram": {
|
|
"BotToken": "8679990909:AAGLLRUIAuEbYAZVGOYDu-UuTu4ihroEiX0",
|
|
"ChatId": "-5434691215",
|
|
"InquiryChatId": "-5434691215",
|
|
"SystemChatId": "-5585148480"
|
|
},
|
|
"Admin": {
|
|
"PasswordResetToken": "dev-reset-token-12345"
|
|
},
|
|
"Authentication": {
|
|
"Google": {
|
|
"ClientId": "",
|
|
"ClientSecret": ""
|
|
},
|
|
"Naver": {
|
|
"ClientId": "",
|
|
"ClientSecret": ""
|
|
},
|
|
"Kakao": {
|
|
"ClientId": "",
|
|
"ClientSecret": ""
|
|
}
|
|
},
|
|
"SiteSettings": {
|
|
"PhoneNumber": "010-4122-8268",
|
|
"EmailAddress": "taxbaik5668@gmail.com",
|
|
"KakaoChannelUrl": "http://pf.kakao.com/_xoxchTX",
|
|
"InstagramUrl": "https://www.instagram.com/taxtory5668/",
|
|
"CompanyName": "백원숙 세무회계",
|
|
"CompanyDescription": "사업자 기장, 부동산 양도세·증여세, 종합소득세 전문 상담"
|
|
},
|
|
"AllowedHosts": "*"
|
|
}
|