move to jwt-go v4 with correct releases (#13586)

This commit is contained in:
Harshavardhana
2021-11-05 12:20:08 -07:00
committed by GitHub
parent cbb0828ab8
commit 520037e721
16 changed files with 26 additions and 22 deletions

View File

@@ -28,7 +28,7 @@ import (
"strings"
"time"
jwtgo "github.com/golang-jwt/jwt"
jwtgo "github.com/golang-jwt/jwt/v4"
"github.com/minio/minio/internal/jwt"
)

View File

@@ -31,7 +31,7 @@ import (
"strings"
"time"
"github.com/golang-jwt/jwt"
"github.com/golang-jwt/jwt/v4"
"github.com/minio/minio/internal/config"
xhttp "github.com/minio/minio/internal/http"
)

View File

@@ -19,7 +19,7 @@ package openid
import (
"crypto"
"github.com/golang-jwt/jwt"
"github.com/golang-jwt/jwt/v4"
// Needed for SHA3 to work - See: https://golang.org/src/crypto/crypto.go?s=1034:1288
_ "golang.org/x/crypto/sha3" // There is no SHA-3 FIPS-140 2 compliant implementation

View File

@@ -29,7 +29,7 @@ import (
"sync"
"time"
jwtgo "github.com/golang-jwt/jwt"
jwtgo "github.com/golang-jwt/jwt/v4"
"github.com/minio/minio/internal/auth"
"github.com/minio/minio/internal/config"
"github.com/minio/minio/internal/config/identity/openid/provider"

View File

@@ -26,7 +26,7 @@ import (
"testing"
"time"
jwtg "github.com/golang-jwt/jwt"
jwtg "github.com/golang-jwt/jwt/v4"
jwtm "github.com/minio/minio/internal/jwt"
xnet "github.com/minio/pkg/net"
)

View File

@@ -20,7 +20,7 @@ package openid
import (
"crypto"
"github.com/golang-jwt/jwt"
"github.com/golang-jwt/jwt/v4"
// Needed for SHA3 to work - See: https://golang.org/src/crypto/crypto.go?s=1034:1288
_ "golang.org/x/crypto/sha3" // There is no SHA-3 FIPS-140 2 compliant implementation

View File

@@ -18,7 +18,7 @@
package subnet
import (
jwtgo "github.com/golang-jwt/jwt"
jwtgo "github.com/golang-jwt/jwt/v4"
"github.com/minio/minio/internal/config"
"github.com/minio/pkg/env"
)

View File

@@ -32,7 +32,7 @@ import (
"sync"
"time"
jwtgo "github.com/golang-jwt/jwt"
jwtgo "github.com/golang-jwt/jwt/v4"
jsoniter "github.com/json-iterator/go"
)

View File

@@ -27,7 +27,7 @@ import (
"testing"
"time"
"github.com/golang-jwt/jwt"
"github.com/golang-jwt/jwt/v4"
)
var (