1
Vote

SimpleWebToken should allow using byte[] as the swtSigningKey

description

There are some cases where SimpleWebToken receives a byte[] as the signing key, and some others where it receives a base64 string and there are no interchangeable overloads.
All methods that currently receive a base64 string (which is immediately converted to byte[] after the call) should allow passing a byte[] instead.
One example of this is SimpleWebToken.TryGetAndValidateFromHeader(string header, string issuer, string audience, string signingKey, out Thinktecture.IdentityModel.Web.SimpleWebToken token)

comments