yourkarma / JWT

A JSON Web Token implementation in Objective-C.
MIT License
350 stars 107 forks source link

Not needed lowercase comparison #221

Open andrewwiik opened 4 years ago

andrewwiik commented 4 years ago

https://github.com/yourkarma/JWT/blob/b70a3a7fac5025b7063222e1194ecbedf85d12a1/Core/Algorithms/Base/JWTAlgorithmFactory.m#L63-L66

According to https://tools.ietf.org/html/rfc7515#section-4.1.1 the alg claim is case-sensitive and all of your alg name defines are correct according to spec

lolgear commented 4 years ago

@andrewwiik Thanks! Could you add PR for that change?