fix
This commit is contained in:
@@ -44,6 +44,7 @@ using Services.Item;
|
||||
using MyOffice.Services.Dashboard;
|
||||
using MyOffice.Services.Identity;
|
||||
using MyOffice.Services.Mapper;
|
||||
using MyOffice.Services.Account.Domain;
|
||||
|
||||
//TODO: Data.Model only Repository and Service, response <-> mapper <-> web <-> mapper <-> service <-> repository
|
||||
//TODO: Project management
|
||||
@@ -252,8 +253,8 @@ public class Program
|
||||
c.AllowNullCollections = true;
|
||||
c.AllowNullDestinationValues = true;
|
||||
},
|
||||
typeof(AccountViewModelProfile),
|
||||
typeof(AccountServiceProfile)
|
||||
typeof(AccountDto).Assembly,
|
||||
typeof(AccountViewModel).Assembly
|
||||
);
|
||||
}
|
||||
|
||||
@@ -421,6 +422,7 @@ public class Program
|
||||
.AllowAnyMethod());
|
||||
|
||||
app.UseIdentityServer();
|
||||
//app.UseAuthentication();
|
||||
app.UseAuthorization();
|
||||
|
||||
app.MapControllers();
|
||||
|
||||
Reference in New Issue
Block a user