Hi
The login, register will use cookies authentication. Only auth2 token will failed.
Thanks.
hi
No additional steps are needed. AddProductionEncryptionAndSigningCertificate is enough.
Thanks.
Yes
generate a pfx file:
dotnet dev-certs https -v -ep openiddict.pfx -p your_password
Use it in your authserver:
PreConfigure<OpenIddictServerBuilder>(serverBuilder =>
{
serverBuilder.AddProductionEncryptionAndSigningCertificate("openiddict.pfx", "your_password");
});
hi
using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
This line of code has a problem.
The Azure hosting environment does not allow your application to access the CurrentUser certificate store by default.
Can you try to use a pfx in the Azure environment?
see https://abp.io/docs/latest/deployment/configuring-openiddict#production-environment
Thanks.
Anytime. : )
: )
hi
I will check your project.
Thanks.
hi
Can you share a minimal/sample project that reproduces the issue?
liming.ma@volosoft.com
Thanks.
hi
the production env gives me this error
Can you share your EncryptionAndSigningCertificate code?
if (!hostingEnvironment.IsDevelopment())
{
PreConfigure<AbpOpenIddictAspNetCoreOptions>(options =>
{
options.AddDevelopmentEncryptionAndSigningCertificate = false;
});
PreConfigure<OpenIddictServerBuilder>(serverBuilder =>
{
serverBuilder.AddProductionEncryptionAndSigningCertificate("openiddict.pfx", configuration["AuthServer:CertificatePassPhrase"]!);
serverBuilder.SetIssuer(new Uri(configuration["AuthServer:Authority"]!));
});
}
hi
Can you test this PR with your actual link users data?
https://github.com/abpframework/abp/pull/23929
Thanks