All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Signing and verifying using RSA-PSS.
- Signing and verifying using Ed25519.
Audiencetype for handling theaudclaim according to the RFC.Algorithminterface.RawTokentype.PayloadandHeaderstructs.Resolverinterface.jwtutilpackage and a type that implementsResolverthat dynamically resolves which algorithm to use.
- Improve performance by storing SHA hash functions in
sync.Pool. - Change signing/verifying methods constructors' names.
- Sign tokens with global function
Sign. - Verify tokens with global function
Verify.
- Allowing arbitrary payload.
- Support for
go1.10. MarshalandUnmarshalfunctions.MarshalerandUnmarshalerinterfaces.Signerinterface.
2.0.0 - 2018-09-14
ParseandParseBytesfunctions.MarshalandUnmarshalfunctions.Marshalerinterface.Unmarshalerinterface.- Content type header parameter.
- Modify
Signersignature. - Add claims directly to
JWTstruct. - Embed
headerto JWT. - Add README texts, examples and usage.
- Rename
const.gotomethods.go. - Add prefix
Newto signing methods constructors. - Run
vgofor testing (this enables testing the package against Go 1.10);
SignandVerifyfunctions.- Base64 encoding and deconding functions.
Optionsstruct.Claimsstruct.- Functions that extract JWT from contexts and requests.
1.1.0 - 2018-08-22
- Prevent expensive slice reallocation when signing a JWT.
- Refactor tests.
- Signature of "none" algorithm.
internalpackage.
1.0.2 - 2018-07-19
- Makefile.
- Benchmark test (unused).
1.0.1 - 2018-07-19
- Wrap Travis CI Golang versions in quotes (for parsing issues, see this).
1.0.0 - 2018-07-19
- AppVeyor configuration file for running tests in Windows.
vgomodule file.
FromContextnow receives a context key as additional parameter.FromContextnow tries to build a JWT if value in context is a string.- Simplified Travis CI configuration file.
- Update README to explain the motivation to have created this library and its differences from other JWT libraries for Golang.
0.5.0 - 2018-03-12
FromContextfunction to extract a JWT object from a context.FromCookiefunction to extract a JWT object from a cookie.
- Split tests into several files in order to organize them.
- Example in README file.
0.4.0 - 2018-02-16
- Support for "none" method.
- Tests for "none" method.
- Missing JWTID claim.
- Plugable validation via validator functions.
(*JWT).JWTIDmethod name to(*JWT).ID.
- Message in
ErrECDSASigLen.
- Comments from custom errors, since they are self-explanatory.
0.3.0 - 2018-02-13
- Package structure.
- Additional packages (
jwtcryptoandjwtutil).
0.2.0 - 2018-02-06
- New test cases.
- Claims' timestamps validation.
- Tests organization.
- Use
time.Afterandtime.Beforefor validating timestamps. jwtcrypto/none.Nonenow implementsjwtcrypto.Signer.
- Panicking when private or public keys are
nil.
- This changelog file.
- README file.
- MIT License.
- Travis CI configuration file.
- Makefile.
- Git ignore file.
- EditorConfig file.
- This package's source code, including examples and tests.
- Go dep files.