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.
Audience
type for handling theaud
claim according to the RFC.Algorithm
interface.RawToken
type.Payload
andHeader
structs.Resolver
interface.jwtutil
package and a type that implementsResolver
that 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
. Marshal
andUnmarshal
functions.Marshaler
andUnmarshaler
interfaces.Signer
interface.
2.0.0 - 2018-09-14
Parse
andParseBytes
functions.Marshal
andUnmarshal
functions.Marshaler
interface.Unmarshaler
interface.- Content type header parameter.
- Modify
Signer
signature. - Add claims directly to
JWT
struct. - Embed
header
to JWT. - Add README texts, examples and usage.
- Rename
const.go
tomethods.go
. - Add prefix
New
to signing methods constructors. - Run
vgo
for testing (this enables testing the package against Go 1.10);
Sign
andVerify
functions.- Base64 encoding and deconding functions.
Options
struct.Claims
struct.- 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.
internal
package.
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.
vgo
module file.
FromContext
now receives a context key as additional parameter.FromContext
now 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
FromContext
function to extract a JWT object from a context.FromCookie
function 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).JWTID
method 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 (
jwtcrypto
andjwtutil
).
0.2.0 - 2018-02-06
- New test cases.
- Claims' timestamps validation.
- Tests organization.
- Use
time.After
andtime.Before
for validating timestamps. jwtcrypto/none.None
now 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.