Releases: joken-elixir/joken
Releases · joken-elixir/joken
1.0.0
- Enhancements
- The
none
algorithm can be used if and only ifallow_none_algorithm
exists as an application variable
on thejoken
app and is set totrue
. Otherwise an error is thrown - Joken
- Added
peek/2
,get_data/1
,with_header_arg/3
,with_header_args/2
,none/1
- Added
- The
- Bug fixes
- Ensures
Plug
is loading before loadingJoken.Plug
- Ensures
0.16.0
- Enhancements
- Updated API to allow for more flexibility for signing and verifying tokens
- Joken.Plug has been added.
- Small fixes to make sure Joken works with Elixir 1.1
- Added support for the following signing algorithms:
- ES256
- ES384
- ES512
- PS256
- PS384
- PS512
- RS256
- RS384
- RS512
- Breaking
- The new API is completely different than the old one. Take a look here to find out how to go from 0.15 to 0.16
encode
anddecode
in the Joken module have been renamed tosign
andverify
.- This release also deprecates plugJWT. Use
Joken.Plug
instead
Release for Hex
- Enhancements
- Add options parameter to Joken.Config.validate_claim
- Moved validation helpers functions to Joken.Helpers
Release for Hex
v0.14.1
- Enhancements
- Using the Dict Protocol for accessing data
Release for Hex
- Enhancements
- The
Joken.Config
behaviour handles the configuration of the secret_key, algorithm, encode and decode functions, as well as functions for adding and validating claims - Add
options
parameter toJoken.Token.decode
- Add
options
parameter toJoken.decode
- Removed
:none
algorithm completely
- The
- Breaking
Joken.Codec
is replaced byJoken.Config
.json_module
in config is replaced byconfig_module
.algorithm
andsecret_key
in config is replaced by implementing thealgorithm
andsecret_key
functions onJoken.Config
.Joken.Token.encode
now has a signature of(joken_config, payload)
since the algorithm and secret key are defined inside of the passed injoken_config
module.Joken.Token.decode
now has a signature of(joken_config, jwt, options \\ [])
since the algorithm and secret key are defined inside of the passed injoken_config
module.
Release for Hex
Merge pull request #28 from bryanjos/none_algorithm Fixed issue where verify_signature verified tokens without a signature
Release for Hex
v0.13.0 Removed -dev from 0.13.0
Release for Hex
v0.12.0 Updated changelog