- Microsoft.AspNetCore.Authentication.JwtBearer 패키지 추가 - Program.cs: JWT 인증 스키마 설정 - Middleware: app.UseAuthentication() 추가 - Admin 대시보드 접근 시 인증 필요 (401 Unauthorized 반환) 테스트 결과: ✅ 홈페이지 (200 OK) ✅ 블로그 (200 OK) ✅ 문의 폼 (200 OK) ✅ 로그인 페이지 (200 OK) ✅ 관리자 대시보드 (401 - 인증 필요) Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
<PackageReference Include="BCrypt.Net-Next" Version="4.0.3" />
|
||||
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.2.1" />
|
||||
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="8.2.1" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user