hi
abp will create an EF Core DbContext in every unit of work and will not use the DbContext pool.
https://docs.abp.io/en/abp/latest/Unit-Of-Work
hi
You can use the AbpOpenIddictRequestHelper to get OpenIddictRequest from ReturnUrl
string returnUrl = request.Query["ReturnUrl"];
var openIddictRequestHelper = httpContext.RequestServices.GetService<AbpOpenIddictRequestHelper>();
var openIddictRequest = await openIddictRequestHelper.GetFromReturnUrlAsync(returnUrl);
hi
First. Do not inject an application service into another application service.
Second, The application service shouldn't return the IActionResult
I think you can't use IUrlHelper in the application service.
You can try removing the parameter from the constructor to test which one causes the error.
Thanks.
hi
We don't have any experience with this case. : (
hi
https://learn.microsoft.com/en-us/aspnet/core/security/cors?view=aspnetcore-8.0#set-the-allowed-origins
The logs are no problem.
Access to fetch at 'http://test.localhost:44367/hubroute/negotiate?negotiateVersion=1'
Does only the route/negotiate have a CORS error or all requests?
Please share the code of your host module.
Thanks again.
hi
The error related to the session management.
Can you set IIS log level to debug to see more details?
public class Program
{
public async static Task<int> Main(string[] args)
{
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Information()
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
.Enrich.FromLogContext()
.WriteTo.Async(c => c.File("Logs/logs.txt"))
.WriteTo.Async(c => c.Console())
.CreateLogger();
Error: invalid_grant => The token is no longer valid because the user's session expired.
https://docs.abp.io/en/commercial/latest/modules/identity/session-management https://docs.abp.io/en/commercial/latest/modules/account/session-management
hi
You can share the logs by https://wetransfer.com/
hi
There is no invalid_grant error in your logs.
Please share the logs on IIS that have the invalid_grant info.
Thanks
hi
Please set log level to debug and share full logs.txt
Thanks
public class Program
{
public async static Task<int> Main(string[] args)
{
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Debug()
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
.Enrich.FromLogContext()
.WriteTo.Async(c => c.File("Logs/logs.txt"))
.WriteTo.Async(c => c.Console())
.CreateLogger();