Ignore:
Timestamp:
03/19/26 20:55:06 (4 months ago)
Author:
kikisrbinoska <srbinoskakristina07@…>
Branches:
main
Children:
b62cefc
Parents:
877c13c
Message:

Added JWT authentication

Location:
ChapterX.Infrastructure
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • ChapterX.Infrastructure/ChapterX.Infrastructure.csproj

    r877c13c re294f7d  
    88
    99  <ItemGroup>
     10    <PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="9.0.0" />
    1011    <PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.0">
    1112      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
  • ChapterX.Infrastructure/DependencyInjection.cs

    r877c13c re294f7d  
    11using ChapterX.Application.Abstractions;
     2using ChapterX.Application.Auth;
    23using ChapterX.Domain.Repositories;
    34using ChapterX.Infrastructure.Data.DataContext;
    45using ChapterX.Infrastructure.Repositories;
     6using ChapterX.Infrastructure.Services;
    57using Microsoft.EntityFrameworkCore;
    68using Microsoft.Extensions.Configuration;
     
    1719
    1820            services.AddScoped<IApplicationDbContext>(sp => sp.GetRequiredService<ApplicationDbContext>());
     21            services.AddScoped<IJwtTokenService, JwtTokenService>();
    1922
    2023            services.AddScoped<IUserRepository, UserRepository>();
Note: See TracChangeset for help on using the changeset viewer.