hi
Can you try to override CreateUserAsync
and UpdateUserAsync
methods of ExternalLoginProviderBase
?
https://github.com/abpframework/abp/blob/rel-8.0/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/ExternalLoginProviderBase.cs#L37-L157
Thanks.
hi
1, Add AbpHttpClientIdentityModelWebModule
to your ApplicationBlazorModule
2, Add AbpCachingStackExchangeRedisModule
to your BackendHttpApiHostModule
3, Update BackendHttpApiHostModule's ConfigureAuthentication
as below:
private void ConfigureAuthentication(ServiceConfigurationContext context, IConfiguration configuration)
{
Configure<AbpDistributedCacheOptions>(options =>
{
options.KeyPrefix = "AuthServer:";
});
context.Services.ForwardIdentityAuthenticationForBearer(OpenIddictValidationAspNetCoreDefaults.AuthenticationScheme);
context.Services.Configure<AbpClaimsPrincipalFactoryOptions>(options =>
{
options.IsDynamicClaimsEnabled = true;
});
}
Your Blazor and API need to enable the Redis and use the same KeyPrefix
.
Thanks.
hi
Can you share the logs.txt
from the Development
and Production
environments?
Also, the API
startup module code.
liming.ma@volosoft.com
Thanks.
Thanks , I will check and fix it.
hi
what is your UI page?
MVC or Angular or Blazor?
Thanks.
hi
The previous solution has an AuthServer project.
Can you share a screenshot of your solution (microservice application (7.4.5)
) structure?
Thanks