Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support multiple and dynamic signing certificates
In our organisation we roll the signing certificate for our ADFS servers every year. During the roll over period the server provides two certificates which may be valid, so when a SAML response is provided it is valid if it is signed with either of those signatures. This change has two methods that can be used when `passport-saml` is used by a long running service that will persist over the certificate roll over period. The first change is to allow the `cert` configuration key to be an array, this allows for the old and new certificates to be checked during the roll over period. The second change is to allow the `cert` configuration key to be a function that returns the valid certificate or certificates, this allows the service to poll the ADFS server for what the valid certificates are at this moment and update the signing certificates used by `passport-saml` as they change.
- Loading branch information