We only need to replace the authentication process. We would like to use the authentication provided directly by azure instead the login page of the aspnetzero framework
Best Regards
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.Linq;
using System.Linq.Dynamic.Core;
using System.Threading.Tasks;
using Abp.Application.Services.Dto;
using Abp.Authorization;
using Abp.Domain.Repositories;
using Abp.Extensions;
using Abp.Localization;
using Abp.MultiTenancy;
using Abp.UI;
using cscDemo.Authorization;
using cscDemo.Localization.Dto;
using Abp.AutoMapper;
using System.Linq.Dynamic;
using Abp.Linq.Extensions;
//using System.Data.Entity;
//using System.Web.Http;
using cscDemo.Dto.ProductsBrands;
namespace cscDemo
{
class ProductsBrandsAppService : cscDemoAppServiceBase, IProductsBrandsAppService
{
private readonly IRepository<cscDemo.ProductsBrands> _myRepository;
public ProductsBrandsAppService(IRepository<cscDemo.ProductsBrands> myRepository)
{
_myRepository = myRepository;
}
public ListResultDto<GetTableDto> GetTable(GetTableFilters input)
{
var retValues = _myRepository
.GetAll()
.WhereIf
(
!input.FilterName.IsNullOrEmpty(),
p => p.bnd_name.Contains(input.FilterName)
)
.OrderBy(p => p.bnd_name)
.ToList();
return new ListResultDto<GetTableDto>(ObjectMapper.Map<List<GetTableDto>>(retValues));
}
public async Task CreateRecord(CreateRecordInput input)
{
var person = ObjectMapper.Map<ProductsBrands>(input);
await _myRepository.InsertAsync(person);
}
}
}
I've just copied the code, thanks!
using Abp.Application.Services;
using Abp.Application.Services.Dto;
using System.Threading.Tasks;
using cscDemo.Dto.ProductsBrands;
namespace cscDemo
{
public interface IProductsBrandsAppService : IApplicationService
{
ListResultDto<GetTableDto> GetTable(GetTableFilters input);
//Task<GetRecordDto> GetRecord(IEntityDto input);
//Task DeleteRecord(EntityDto input);
Task CreateRecord(CreateRecordInput input);
}
}
Could you please confirm what part of code would you like to see (I've included in the first email part of the function).
Thanks
Yes, we have the corresponding interface and implementation. Up to here "https://docs.aspnetzero.com/documents/aspnet-core-mvc/latest/Developing-Step-By-Step-Core-Using-GetPeople-Method-From-MVC-Controller" the project works correctly.
Then, in the "Creating a new person" stage, it works well until the "Opening the person modal" step, but the next step "Saving person" is where the error occurs and, as indicated in the previous ticket, we have detected that the problem is because the proxy "abp.services.app.person" has the value "undefined"
Thanks
Thanks!
Thanks! fixed!