├── .gitignore ├── JwtAuthAspNet7WebAPI.sln ├── JwtAuthAspNet7WebAPI ├── Controllers │ ├── AuthController.cs │ └── WeatherForecastController.cs ├── Core │ ├── DbContext │ │ └── ApplicationDbContext.cs │ ├── Dtos │ │ ├── AuthServiceResponseDto.cs │ │ ├── LoginDto.cs │ │ ├── RegisterDto.cs │ │ └── UpdatePermissionDto.cs │ ├── Entities │ │ ├── ApplicationRole.cs │ │ └── ApplicationUser.cs │ ├── Identity │ │ ├── Factories │ │ │ └── ApplicationClaimPrincipalFactory.cs │ │ └── Stores │ │ │ ├── ApplicationRoleStore.cs │ │ │ └── ApplicationUserStore.cs │ ├── Interfaces │ │ └── IAuthService.cs │ ├── OtherObjects │ │ └── StaticUserRoles.cs │ └── Services │ │ └── AuthService.cs ├── JwtAuthAspNet7WebAPI.csproj ├── Migrations │ ├── 20240928164227_UpdateProject.Designer.cs │ ├── 20240928164227_UpdateProject.cs │ ├── 20240928172056_UpdateUserEntity.Designer.cs │ ├── 20240928172056_UpdateUserEntity.cs │ └── ApplicationDbContextModelSnapshot.cs ├── Program.cs ├── Properties │ └── launchSettings.json ├── appsettings.Development.json └── appsettings.json ├── README.md └── SqlQueries └── AspUserRoles.sql /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohammad-taheri1/YouTube-JwtAuthAspNet7WebAPI/HEAD/.gitignore -------------------------------------------------------------------------------- /JwtAuthAspNet7WebAPI.sln: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohammad-taheri1/YouTube-JwtAuthAspNet7WebAPI/HEAD/JwtAuthAspNet7WebAPI.sln -------------------------------------------------------------------------------- /JwtAuthAspNet7WebAPI/Controllers/AuthController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohammad-taheri1/YouTube-JwtAuthAspNet7WebAPI/HEAD/JwtAuthAspNet7WebAPI/Controllers/AuthController.cs -------------------------------------------------------------------------------- /JwtAuthAspNet7WebAPI/Controllers/WeatherForecastController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohammad-taheri1/YouTube-JwtAuthAspNet7WebAPI/HEAD/JwtAuthAspNet7WebAPI/Controllers/WeatherForecastController.cs -------------------------------------------------------------------------------- /JwtAuthAspNet7WebAPI/Core/DbContext/ApplicationDbContext.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohammad-taheri1/YouTube-JwtAuthAspNet7WebAPI/HEAD/JwtAuthAspNet7WebAPI/Core/DbContext/ApplicationDbContext.cs -------------------------------------------------------------------------------- /JwtAuthAspNet7WebAPI/Core/Dtos/AuthServiceResponseDto.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohammad-taheri1/YouTube-JwtAuthAspNet7WebAPI/HEAD/JwtAuthAspNet7WebAPI/Core/Dtos/AuthServiceResponseDto.cs -------------------------------------------------------------------------------- /JwtAuthAspNet7WebAPI/Core/Dtos/LoginDto.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohammad-taheri1/YouTube-JwtAuthAspNet7WebAPI/HEAD/JwtAuthAspNet7WebAPI/Core/Dtos/LoginDto.cs -------------------------------------------------------------------------------- /JwtAuthAspNet7WebAPI/Core/Dtos/RegisterDto.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohammad-taheri1/YouTube-JwtAuthAspNet7WebAPI/HEAD/JwtAuthAspNet7WebAPI/Core/Dtos/RegisterDto.cs -------------------------------------------------------------------------------- /JwtAuthAspNet7WebAPI/Core/Dtos/UpdatePermissionDto.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohammad-taheri1/YouTube-JwtAuthAspNet7WebAPI/HEAD/JwtAuthAspNet7WebAPI/Core/Dtos/UpdatePermissionDto.cs -------------------------------------------------------------------------------- /JwtAuthAspNet7WebAPI/Core/Entities/ApplicationRole.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohammad-taheri1/YouTube-JwtAuthAspNet7WebAPI/HEAD/JwtAuthAspNet7WebAPI/Core/Entities/ApplicationRole.cs -------------------------------------------------------------------------------- /JwtAuthAspNet7WebAPI/Core/Entities/ApplicationUser.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohammad-taheri1/YouTube-JwtAuthAspNet7WebAPI/HEAD/JwtAuthAspNet7WebAPI/Core/Entities/ApplicationUser.cs -------------------------------------------------------------------------------- /JwtAuthAspNet7WebAPI/Core/Identity/Factories/ApplicationClaimPrincipalFactory.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohammad-taheri1/YouTube-JwtAuthAspNet7WebAPI/HEAD/JwtAuthAspNet7WebAPI/Core/Identity/Factories/ApplicationClaimPrincipalFactory.cs -------------------------------------------------------------------------------- /JwtAuthAspNet7WebAPI/Core/Identity/Stores/ApplicationRoleStore.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohammad-taheri1/YouTube-JwtAuthAspNet7WebAPI/HEAD/JwtAuthAspNet7WebAPI/Core/Identity/Stores/ApplicationRoleStore.cs -------------------------------------------------------------------------------- /JwtAuthAspNet7WebAPI/Core/Identity/Stores/ApplicationUserStore.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohammad-taheri1/YouTube-JwtAuthAspNet7WebAPI/HEAD/JwtAuthAspNet7WebAPI/Core/Identity/Stores/ApplicationUserStore.cs -------------------------------------------------------------------------------- /JwtAuthAspNet7WebAPI/Core/Interfaces/IAuthService.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohammad-taheri1/YouTube-JwtAuthAspNet7WebAPI/HEAD/JwtAuthAspNet7WebAPI/Core/Interfaces/IAuthService.cs -------------------------------------------------------------------------------- /JwtAuthAspNet7WebAPI/Core/OtherObjects/StaticUserRoles.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohammad-taheri1/YouTube-JwtAuthAspNet7WebAPI/HEAD/JwtAuthAspNet7WebAPI/Core/OtherObjects/StaticUserRoles.cs -------------------------------------------------------------------------------- /JwtAuthAspNet7WebAPI/Core/Services/AuthService.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohammad-taheri1/YouTube-JwtAuthAspNet7WebAPI/HEAD/JwtAuthAspNet7WebAPI/Core/Services/AuthService.cs -------------------------------------------------------------------------------- /JwtAuthAspNet7WebAPI/JwtAuthAspNet7WebAPI.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohammad-taheri1/YouTube-JwtAuthAspNet7WebAPI/HEAD/JwtAuthAspNet7WebAPI/JwtAuthAspNet7WebAPI.csproj -------------------------------------------------------------------------------- /JwtAuthAspNet7WebAPI/Migrations/20240928164227_UpdateProject.Designer.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohammad-taheri1/YouTube-JwtAuthAspNet7WebAPI/HEAD/JwtAuthAspNet7WebAPI/Migrations/20240928164227_UpdateProject.Designer.cs -------------------------------------------------------------------------------- /JwtAuthAspNet7WebAPI/Migrations/20240928164227_UpdateProject.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohammad-taheri1/YouTube-JwtAuthAspNet7WebAPI/HEAD/JwtAuthAspNet7WebAPI/Migrations/20240928164227_UpdateProject.cs -------------------------------------------------------------------------------- /JwtAuthAspNet7WebAPI/Migrations/20240928172056_UpdateUserEntity.Designer.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohammad-taheri1/YouTube-JwtAuthAspNet7WebAPI/HEAD/JwtAuthAspNet7WebAPI/Migrations/20240928172056_UpdateUserEntity.Designer.cs -------------------------------------------------------------------------------- /JwtAuthAspNet7WebAPI/Migrations/20240928172056_UpdateUserEntity.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohammad-taheri1/YouTube-JwtAuthAspNet7WebAPI/HEAD/JwtAuthAspNet7WebAPI/Migrations/20240928172056_UpdateUserEntity.cs -------------------------------------------------------------------------------- /JwtAuthAspNet7WebAPI/Migrations/ApplicationDbContextModelSnapshot.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohammad-taheri1/YouTube-JwtAuthAspNet7WebAPI/HEAD/JwtAuthAspNet7WebAPI/Migrations/ApplicationDbContextModelSnapshot.cs -------------------------------------------------------------------------------- /JwtAuthAspNet7WebAPI/Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohammad-taheri1/YouTube-JwtAuthAspNet7WebAPI/HEAD/JwtAuthAspNet7WebAPI/Program.cs -------------------------------------------------------------------------------- /JwtAuthAspNet7WebAPI/Properties/launchSettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohammad-taheri1/YouTube-JwtAuthAspNet7WebAPI/HEAD/JwtAuthAspNet7WebAPI/Properties/launchSettings.json -------------------------------------------------------------------------------- /JwtAuthAspNet7WebAPI/appsettings.Development.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohammad-taheri1/YouTube-JwtAuthAspNet7WebAPI/HEAD/JwtAuthAspNet7WebAPI/appsettings.Development.json -------------------------------------------------------------------------------- /JwtAuthAspNet7WebAPI/appsettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohammad-taheri1/YouTube-JwtAuthAspNet7WebAPI/HEAD/JwtAuthAspNet7WebAPI/appsettings.json -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohammad-taheri1/YouTube-JwtAuthAspNet7WebAPI/HEAD/README.md -------------------------------------------------------------------------------- /SqlQueries/AspUserRoles.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohammad-taheri1/YouTube-JwtAuthAspNet7WebAPI/HEAD/SqlQueries/AspUserRoles.sql --------------------------------------------------------------------------------