hi
But this extension method has three arguments. You can copy the source code of this method.
using System.IO;
using System.Security.Cryptography.X509Certificates;
namespace Microsoft.Extensions.DependencyInjection;
public static class OpenIddictServerBuilderExtensions
{
public static OpenIddictServerBuilder AddProductionEncryptionAndSigningCertificate(this OpenIddictServerBuilder builder, string fileName, string passPhrase, X509KeyStorageFlags? flag = null)
{
if (!File.Exists(fileName))
{
throw new FileNotFoundException($"Signing Certificate couldn't found: {fileName}");
}
var certificate = flag != null
? new X509Certificate2(fileName, passPhrase, flag.Value)
: new X509Certificate2(fileName, passPhrase);
builder.AddSigningCertificate(certificate);
builder.AddEncryptionCertificate(certificate);
return builder;
}
}
hi
Try to specify the X509KeyStorageFlags
serverBuilder.AddProductionEncryptionAndSigningCertificate("openiddict.pfx", "bf6bc8cb-7dd5-43bc-beba-c5bbaf0f78a4", X509KeyStorageFlags.PersistKeySet | X509KeyStorageFlags.MachineKeySet | X509KeyStorageFlags.EphemeralKeySet);
hi
You can use your openiddict.pfx
file.
dotnet dev-certs https -v -ep openiddict.pfx -p 00000000-0000-0000-0000-000000000000
See https://abp.io/docs/latest/deployment/configuring-openiddict
hi
③ If you enter the correct user and password in tab 1 and log in, you will be able to log in. ④ If you enter the correct user and password in tab 2, you will get a 400 error.
I opened two tabs.
TabA => account/login TabB => account/login
If I sign in TabA. the TabB will redirect to home page
Can you share your step to get the 400 error?
Thanks.
hi
Can you share some screenshots and error logs?
Thanks.
hi
Can you share a template project to reproduce these two problems?
I will download and check it.
Thanks.
liming.ma@volosoft.com
hi
ABP Fremework doesn't support your case.
If you want to hide the permissions on the UI page. You can override the application service.
https://github.com/abpframework/abp/blob/dev/modules/permission-management/src/Volo.Abp.PermissionManagement.Application/Volo/Abp/PermissionManagement/PermissionAppService.cs#L0-L1
hi
Can you share the code and steps to reproduce the problem?
Thanks,
liming.ma@volosoft.com
Great
PreConfigure<OpenIddictServerBuilder>
is global. And OpenId > Application
is for each application/client.