Releases: supanadit/jwt-go
Releases · supanadit/jwt-go
Version 1.3.1
- 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
- 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
- Support manually set signing method for HMAC
Version 1.1.0
- Support Echo Web Framework
Version 1.0.3
- Fix invalid token when authorization disabled
Version 1.0.2
- Fix cannot disable authorization if the verification using gin header
Version 1.0.1
- Change module name
Version 1.0.0
- Set Secret Code
- Set Expired Time
- Generate JWT
- Verify JWT
- Custom Authorization
- Encrypt Password
- Verify Password
- Support Gin Web Framework
- Enable / Disable Authorization