Skip to content

Releases: supanadit/jwt-go

Version 1.3.1

11 Jul 00:58
Compare
Choose a tag to compare
  • Fix authorization access only can used JWT type

Example

curl -i -H "Authorization: JWT <your_token>" http://localhost:8080/test # Valid
curl -i -H "Authorization: XAD <your_token>" http://localhost:8080/test # Invalid
curl -i -H "Authorization: <your_token>" http://localhost:8080/test # Invalid

Version 1.3.0

10 Jul 15:24
Compare
Choose a tag to compare
  • Now can verify encrypted password

Example

auth := jwt.Authorization{
	Username: "admin",
	Password: "$2a$12$7W1EAmdfE4FUf2N7OIAj7uSoXzERHlagyEzrqv4FXLbol0LtO5W4e",
}

valid, err := auth.VerifyEncryptedPassword("123")
if err != nil {
	fmt.Println(err)
}

fmt.Print("Status : ")

if valid {
	fmt.Println("Valid")
} else {
	fmt.Println("Invalid")
}

Version 1.2.0

01 May 13:18
Compare
Choose a tag to compare
  • Support manually set signing method for HMAC

Version 1.1.0

20 Apr 12:50
Compare
Choose a tag to compare
  • Support Echo Web Framework

Version 1.0.3

11 Apr 12:00
Compare
Choose a tag to compare
  • Fix invalid token when authorization disabled

Version 1.0.2

11 Apr 11:48
Compare
Choose a tag to compare
  • Fix cannot disable authorization if the verification using gin header

Version 1.0.1

10 Apr 14:09
Compare
Choose a tag to compare
  • Change module name

Version 1.0.0

10 Apr 13:36
Compare
Choose a tag to compare
  • Set Secret Code
  • Set Expired Time
  • Generate JWT
  • Verify JWT
  • Custom Authorization
  • Encrypt Password
  • Verify Password
  • Support Gin Web Framework
  • Enable / Disable Authorization