Using a specific namespace for the abstraction

This commit is contained in:
Zoe Roux
2021-08-14 19:32:26 +02:00
parent fab9b8a5c7
commit cd73ea953b
156 changed files with 340 additions and 305 deletions
+3 -2
View File
@@ -7,10 +7,11 @@ using Autofac;
using IdentityServer4.Extensions;
using IdentityServer4.Models;
using IdentityServer4.Services;
using Kyoo.Abstractions;
using Kyoo.Abstractions.Controllers;
using Kyoo.Abstractions.Models.Permissions;
using Kyoo.Authentication.Models;
using Kyoo.Authentication.Views;
using Kyoo.Controllers;
using Kyoo.Models.Permissions;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
@@ -2,8 +2,8 @@ using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Kyoo.Abstractions.Models.Permissions;
using Kyoo.Authentication.Models;
using Kyoo.Models.Permissions;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Http;
+1 -1
View File
@@ -3,7 +3,7 @@ using System.Linq;
using System.Security.Claims;
using IdentityModel;
using IdentityServer4;
using Kyoo.Models;
using Kyoo.Abstractions.Models;
namespace Kyoo.Authentication
{
@@ -1,6 +1,6 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Kyoo.Models;
using Kyoo.Abstractions.Models;
namespace Kyoo.Authentication.Models.DTO
{
@@ -34,7 +34,7 @@ namespace Kyoo.Authentication.Models.DTO
/// <returns></returns>
public User ToUser()
{
return new()
return new User
{
Slug = Utility.ToSlug(Username),
Username = Username,
+3 -3
View File
@@ -8,11 +8,11 @@ using System.Threading.Tasks;
using IdentityServer4.Extensions;
using IdentityServer4.Models;
using IdentityServer4.Services;
using Kyoo.Abstractions.Controllers;
using Kyoo.Abstractions.Models;
using Kyoo.Abstractions.Models.Exceptions;
using Kyoo.Authentication.Models;
using Kyoo.Authentication.Models.DTO;
using Kyoo.Controllers;
using Kyoo.Models;
using Kyoo.Models.Exceptions;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;