You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+23Lines changed: 23 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,28 @@
1
1
# Changelog
2
2
3
+
## v4.5.0 - 2021-08-01
4
+
5
+
**Important notes**
6
+
7
+
A **BREAKING CHANGE** is introduced for JWT middleware users.
8
+
The JWT library used for the JWT middleware had to be changed from [github.com/dgrijalva/jwt-go](https://github.com/dgrijalva/jwt-go) to
9
+
[github.com/golang-jwt/jwt](https://github.com/golang-jwt/jwt) due former library being unmaintained and affected by security
10
+
issues.
11
+
The [github.com/golang-jwt/jwt](https://github.com/golang-jwt/jwt) project is a drop-in replacement, but supports only the latest 2 Go versions.
12
+
So for JWT middleware users Go 1.15+ is required. For detailed information please read [#1940](https://github.com/labstack/echo/discussions/)
13
+
14
+
To change the library imports in all .go files in your project replace all occurrences of `dgrijalva/jwt-go` with `golang-jwt/jwt`.
15
+
16
+
For Linux CLI you can use:
17
+
```bash
18
+
find -type f -name "*.go" -exec sed -i "s/dgrijalva\/jwt-go/golang-jwt\/jwt/g" {} \;
19
+
go mod tidy
20
+
```
21
+
22
+
**Fixes**
23
+
24
+
* Change JWT library to `github.com/golang-jwt/jwt`[#1946](https://github.com/labstack/echo/pull/1946)
0 commit comments