JasperFx / alba

Easy integration testing for ASP.NET Core applications
https://jasperfx.github.io/alba
Apache License 2.0
406 stars 39 forks source link

Handle non-HMAC signing keys #101

Closed yuriylsh closed 2 years ago

yuriylsh commented 2 years ago

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.