openiddict / openiddict-core

Flexible and versatile OAuth 2.0/OpenID Connect stack for .NET
https://openiddict.com/
Apache License 2.0
4.47k stars 528 forks source link

Add methods for registering multiple certificates and keys for Client/Server/Validation #2232

Open ionite34 opened 5 days ago

ionite34 commented 5 days ago

Simplifies setup for adding multiple certificates for key rotation scenarios.

Calls existing single registration overloads using Enumerable.Aggregate.

Adds these signatures for Client, Server, and Validation builders: AddEncryptionKeys(IEnumerable<SecurityKey> keys) AddEncryptionCertificates(IEnumerable<X509Certificate2> certificates) AddSigningKeys(IEnumerable<SecurityKey> keys) AddSigningCertificates(IEnumerable<X509Certificate2> certificates)