Since we currently strip out from original TokenValidationParameters.ValidAlgorithms the code defaults to HMAC and will throw as soon as we try to use JWT token with this signing key.
This PR makes sure that we propagate the original TokenValidationParameters.ValidAlgorithms so that singing keys based on non-HMAC algorithms do not throw.
Since we currently strip out from original
TokenValidationParameters.ValidAlgorithms
the code defaults to HMAC and will throw as soon as we try to use JWT token with this signing key.This PR makes sure that we propagate the original
TokenValidationParameters.ValidAlgorithms
so that singing keys based on non-HMAC algorithms do not throw.