hi
It looks like the default token lifetime is still set to 1 hour. After 1 hour, I lose authorization and have to log in again.
Can you enable the debug logs(Verbose for openiddict)?
https://abp.io/support/questions/8622/How-to-enable-Debug-logs-for-troubleshoot-problems
hi
Inter-service calls should not require authentication.
You can consider using Integration Services
https://abp.io/docs/latest/framework/api-development/integration-services
hi
Can you call the await UnitOfWorkManager.Current.SaveChangesAsync(); after DeleteAsync?
eg:
await this.VehicleRepository.DeleteAsync(vehicleId);
await UnitOfWorkManager.Current.SaveChangesAsync();
var shipment = await _shipmentRepository.GetAsync(shipmentId);
var count = shipment.Vehicles.Count;
hi
It has no size limit by default, but you are not advised to perform encryption and decryption on very long text.
https://abp.io/community/articles/encryption-and-decryption-in-abp-framework-37uqhdwz
hi
Have you added the AbpAspNetCoreAuthenticationJwtBearerModule in AdministrationService?
hi
I think the ASP.NET Core only checks the BindProperty of the base LoginModel class.
hi
I have also created a PR to fix the overwriting of the Login Hint: https://github.com/abpframework/abp/pull/22887
Thanks. I will check it. : )
hi
[DisableAuditing]
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(LoginModel), typeof(OpenIddictSupportedLoginModel))]
public class MyCustomLogin : OpenIddictSupportedLoginModel
{
public MyCustomLogin(IAuthenticationSchemeProvider schemeProvider, IOptions<AbpAccountOptions> accountOptions, IAbpRecaptchaValidatorFactory recaptchaValidatorFactory, IAccountExternalProviderAppService accountExternalProviderAppService, ICurrentPrincipalAccessor currentPrincipalAccessor, IOptions<IdentityOptions> identityOptions, IOptionsSnapshot<reCAPTCHAOptions> reCaptchaOptions, AbpOpenIddictRequestHelper openIddictRequestHelper) : base(schemeProvider, accountOptions, recaptchaValidatorFactory, accountExternalProviderAppService, currentPrincipalAccessor, identityOptions, reCaptchaOptions, openIddictRequestHelper)
{
}
public override async Task<IActionResult> OnGetAsync()
{
var result = await base.OnGetAsync();
if (LoginInput.UserNameOrEmailAddress.IsNullOrWhiteSpace())
{
LoginInput.UserNameOrEmailAddress = Request.Query["TestUrlParameter"];
}
return result;
}
}
hi
I think you can add a middleware before or after Authorization to do some custom logic.
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/middleware/?view=aspnetcore-9.0