hi
In your Domain module.
services.TryAddScoped<YourIdentityUserManager>();
services.TryAddScoped(typeof(UserManager<IdentityUser>), provider => provider.GetService(typeof(YourIdentityUserManager)));
But the UserManager.FindByIdAsync returns null.
Can you try to call this method manually?
hi
The user is null here: https://github.com/abpframework/abp/blob/net9/modules/openiddict/src/Volo.Abp.OpenIddict.AspNetCore/Volo/Abp/OpenIddict/Controllers/AuthorizeController.cs#L84
Is the user id 3a0daa97-5fba-2079-563c-3e26309bdc81 valid?
hi
Can I check it remotely?
https://us05web.zoom.us/j/84296078428?pwd=QPh9vbJQmZdQv47RAaNrqv7WNvMU6d.1
Join and share your screen.
Thanks
Usually, when you request the API, MVC will log out automatically.
If not, can you share Debug logs for API ,WEB and AuthServer?
Thanks!
hi
https://{0}.localhost to http://{0}.localhost:42002024-09-17 11:35:50.876 +05:30 [DBG] Checking wildcard domain for url: http://test2dev.localhost:4200
2024-09-17 11:35:50.876 +05:30 [DBG] Checking wildcard domain format: https://{0}.localhost
2024-09-17 11:35:50.876 +05:30 [DBG] Checking wildcard domain format: https://{0}.localhost
2024-09-17 11:35:50.876 +05:30 [DBG] Wildcard domain not found for url: http://test2dev.localhost:4200
hi @ageiter
Is your problem solved?
hi
There should be a CheckTokenExpiration method in you Web module.
You can pass the validationInterval to it. The default value is 1 minute.
https://github.com/abpframework/abp/blob/net9/framework/src/Volo.Abp.AspNetCore/Microsoft/Extensions/DependencyInjection/CookieAuthenticationOptionsExtensions.cs#L18