NeilMadden / apisecurityinaction

Source code that accompanies the book API Security in Action
MIT License
147 stars 97 forks source link

Hardcoded algorithm in Listing 6.3 #24

Open SpecLad opened 2 weeks ago

SpecLad commented 2 weeks ago

In Listing 6.3, there's a line that goes:

var header = new JWSHeader(JWSAlgorithm.HS256);

Presumably, this should instead be:

var header = new JWSHeader(algorithm);

since the algorithm is supposed to be passed as a constructor parameter.