json_web_token_ex
json_web_token_ex copied to clipboard
An Elixir implementation of the JSON Web Token (JWT) Standard, RFC 7519
I think the newer version of crypto.hmac has 4 arguments instead of 3 (OTP 20 and above?). ``` ** (UndefinedFunctionError) function :crypto.hmac/3 is undefined or private (crypto 5.0) :crypto.hmac(:sha256, "xxxxxxxxxxxxxxxxxxxxxxxx",...
Hello, I am trying to verify a JWT token using RS256 and an RSA public key. However, I keep getting "ArgumentError" What is the correct way to pass in RSA...
This library currently is hardcoded to use Poison. As I would like to be able to completely replace the Poison dependency with Jason in all projects this PR adds a...
Since this library defines an explicit `applications` list in `mix.exs`, any dependency not in the list will not be included in a `mix release` build, unless it happens to be...
Erlang 22.1 introduces `:crypto.mac/4`, 23 deprecates `:crypto.hmac/3` and 24 removes it. This PR adds support for both functions depending on which one exists.
This fixes tests on OTP24.
Just a tiny tweak to allow the use of Poison 4.0 (which works fine) without an override.
```ex iex(1)> JsonWebToken.verify("foobar", %{key: "barbaz"}) ** (RuntimeError) Failed to decode header from JSON (json_web_token) lib/json_web_token/jws.ex:95: JsonWebToken.Jws.header_map/1 (json_web_token) lib/json_web_token/jws.ex:82: JsonWebToken.Jws.validate_alg_matched/2 (json_web_token) lib/json_web_token/jws.ex:77: JsonWebToken.Jws.verify/3 (json_web_token) lib/json_web_token/jwt.ex:89: JsonWebToken.Jwt.verify/2 ``` I would expect that...
I am attempting to decode a JWT from Google via OpenID Connect. The public certs are here: https://www.googleapis.com/oauth2/v3/certs and I get the following error: ``` ** (Protocol.UndefinedError) protocol Enumerable not...
Hello @garyf, Any plans to push a new release out? I'm sure you know already but the current version is broken with OTP 20 (and there is already a fix...