Add Microsoft.IdentityModel with the latest version that fixes the problem.
<PackageReference Include="Microsoft.IdentityModel.Protocols.OpenIdConnect" Version="8.12.1" />
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="8.12.1" />
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="8.12.1" />
hi
we only need how to configure it exactly.
You need to configure JSON options in two places.
// This is for MVC JsonSerializer
Configure<JsonOptions>(options =>
{
options.
});
// This is for ABP JsonSerializer
Configure<AbpSystemTextJsonSerializerOptions>(options =>
{
options.
});
hi
from a web or a public web redirect to a separated OpenIddict AuthServer, after the authority, redirected to the original the url, occurred this error
Please enable debug logs/ShowPII for web, public web, and AuthServer. Then, reproduce the problem and share all logs.txt files.
https://abp.io/support/questions/8622/How-to-enable-Debug-logs-for-troubleshoot-problems
liming.ma@volosoft.com
Thanks.
hi
I've reproduced your problem; I will fix it as soon as possible.
Thanks.
ok, I'm working on it.
I will add more test cases. Waiting for your real project.
Thanks.
hi
I will work on a minimal repro tomorrow.
Thank you very much. I will check your project as soon as possible once I receive it.
hi
I added a simple unit test, and there were no performance problems. https://github.com/abpframework/abp/pull/23316/files
hi
Can you set a breakpoint to see the Type of _distributedLock? It should be MedallionAbpDistributedLock.
Please also inject the IDistributedLockProvider and check its Type. It should be RedisDistributedSynchronizationProvider
Thanks.
hi
public class MyModuleApplicationModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
context.Services.AddAutoMapperObjectMapper<MyModuleApplicationModule>();
Configure<AbpAutoMapperOptions>(options =>
{
options.AddMaps<MyModuleApplicationModule>(validate: true);
});
context.Services.OnRegistered(CheckBaseModelProviderInterceptorRegistrar.RegisterIfNeeded);
}
}
public class CheckBaseModelProviderInterceptorRegistrar
{
public static void RegisterIfNeeded(IOnServiceRegistredContext context)
{
if (ShouldIntercept(context.ImplementationType))
{
context.Interceptors.TryAdd<CheckBaseModelProviderInterceptor>();
}
}
private static bool ShouldIntercept(Type type)
{
return !DynamicProxyIgnoreTypes.Contains(type) &&
//typeof(ISampleAppService).IsAssignableFrom(type) && // Uncomment this line if you want to restrict to specific interfaces
(type.GetCustomAttributes(true).OfType<CheckBaseModelProviderAttribute>().Any() ||
type.GetMethods().Any(x => x.IsDefined(typeof(CheckBaseModelProviderAttribute), inherit: true)));
}
}