- 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
34 lines
1.4 KiB
XML
34 lines
1.4 KiB
XML
<Project Sdk="Microsoft.NET.Sdk.Web">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net9.0</TargetFramework>
|
|
<Nullable>enable</Nullable>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<UserSecretsId>1b3e01bb-60ac-40bc-9abf-5cf3a7e35ba2</UserSecretsId>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="BCrypt.Net-Next" Version="4.0.3" />
|
|
<PackageReference Include="FirebaseAdmin" Version="3.4.0" />
|
|
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="9.0.0" />
|
|
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.0" />
|
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.11">
|
|
<PrivateAssets>all</PrivateAssets>
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
</PackageReference>
|
|
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="9.0.0" />
|
|
<PackageReference Include="RabbitMQ.Client" Version="7.2.0" />
|
|
<PackageReference Include="Serilog.AspNetCore" Version="10.0.0" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Folder Include="CheckList\" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\SPMS.Application\SPMS.Application.csproj" />
|
|
<ProjectReference Include="..\SPMS.Infrastructure\SPMS.Infrastructure.csproj" />
|
|
</ItemGroup>
|
|
|
|
</Project>
|