你可以分享你的项目源码吗?
你可以上传到一个私人的Github仓库
谢谢
hi
You can read pfx from a stream or an embedded/virtual file.
https://github.com/abpframework/abp/blob/dev/modules/openiddict/src/Volo.Abp.OpenIddict.AspNetCore/Microsoft/Extensions/DependencyInjection/OpenIddictServerBuilderExtensions.cs#L15-L20
Thanks.
hi
Could you share some code to help us understand your case?
You can use Static C# API Client Proxies between your services.
https://abp.io/docs/latest/framework/api-development/static-csharp-clients?_redirected=B8ABF606AA1BDF5C629883DF1061649A
Thanks.
hi
Can you output some logs when context.SetEndpoint(null);? Make sure the Endpoint is null for appsettings.json request.
// Set endpoint to null so the static files middleware will handle the request.
context.SetEndpoint(null);
Or can you try that?
public override void OnApplicationInitialization(ApplicationInitializationContext context)
{
var env = context.GetEnvironment();
var app = context.GetApplicationBuilder();
// Configure the HTTP request pipeline.
if (env.IsDevelopment())
{
app.UseWebAssemblyDebugging();
}
else
{
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts();
}
app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseRouting();
app.UseAntiforgery();
app.UseConfiguredEndpoints(builder =>
{
builder.MapRazorComponents<App>()
.AddInteractiveWebAssemblyRenderMode()
.AddAdditionalAssemblies(WebAppAdditionalAssembliesHelper.GetAssemblies<BillingBlazorClientModule>());
});
}
Thanks.
hi
If your abp version >= 7.4.2, Payment module will support getting the current tenant URL
See https://abp.io/support/questions/6003/Stripe-payment-module-tenantName-resolver-issue
Thanks.
You're welcome. : )
hi
Please share your startup module code?
The correct middleware code/order should be:
app.UseRouting();
var configuration = context.GetConfiguration();
if (Convert.ToBoolean(configuration["AuthServer:IsOnK8s"]))
{
app.Use(async (context, next) =>
{
if (context.Request.Path.Value != null &&
context.Request.Path.Value.StartsWith("/appsettings", StringComparison.OrdinalIgnoreCase) &&
context.Request.Path.Value.EndsWith(".json", StringComparison.OrdinalIgnoreCase))
{
// Set endpoint to null so the static files middleware will handle the request.
context.SetEndpoint(null);
}
await next(context);
});
app.UseStaticFilesForPatterns("appsettings*.json");
}
app.MapAbpStaticAssets();
Thanks.
hi
What is your payment provider?
PayPal or TwoCheckout?
Thanks.