Skip to content

Commit

Permalink
autorest/adal: switch to github.com/golang-jwt/jwt v3.2.2
Browse files Browse the repository at this point in the history
The github.com/form3tech-oss/jwt-go fork has been archived, and all
development is moved to the github.com/golang-jwt/jwt project, which
is now the canonical/official fork of github.com/dgrijalva/jwt-go.

The latest version of github.com/golang-jwt/jwt (v4.0.0) also adds
go module support, but the main github.com/Azure/go-autorest package
currently uses "go dep", which is not compatible with go modules that
use versioned import paths (github.com/golang-jwt/jwt/v4) for modules
that do not use a `v<version>` directory.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed Aug 13, 2021
1 parent 3a22510 commit 5146106
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 15 deletions.
8 changes: 4 additions & 4 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions Gopkg.toml
Expand Up @@ -38,6 +38,12 @@ required = ["golang.org/x/lint/golint"]
name = "github.com/dimchansky/utfbom"
version = "1.1.0"

[[constraint]]
name = "github.com/golang-jwt/jwt"
# NOTE: cannot move to github.com/golang-jwt/jwt/v4 yet, because go dep is not
# compatible with v2+ go modules that do not use a v<version> directory.
version = "<4.0.0"

[[constraint]]
name = "github.com/mitchellh/go-homedir"
version = "1.1.0"
Expand All @@ -53,7 +59,3 @@ required = ["golang.org/x/lint/golint"]
[[constraint]]
branch = "master"
name = "golang.org/x/crypto"

[[constraint]]
name = "github.com/form3tech-oss/jwt-go"
version = "3.2.2"
5 changes: 4 additions & 1 deletion autorest/adal/go.mod
Expand Up @@ -8,6 +8,9 @@ require (
github.com/Azure/go-autorest/autorest/mocks v0.4.1
github.com/Azure/go-autorest/logger v0.2.1
github.com/Azure/go-autorest/tracing v0.6.0
github.com/form3tech-oss/jwt-go v3.2.2+incompatible
// NOTE: cannot move to github.com/golang-jwt/jwt/v4 yet, because the main
// github.com/Azure/go-autorest code uses go dep, which is not
// compatible with v2+ go modules that do not use a v<version> directory.
github.com/golang-jwt/jwt v3.2.2+incompatible
golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0
)
9 changes: 5 additions & 4 deletions autorest/adal/go.sum
Expand Up @@ -8,14 +8,15 @@ github.com/Azure/go-autorest/logger v0.2.1 h1:IG7i4p/mDa2Ce4TRyAO8IHnVhAVF3RFU+Z
github.com/Azure/go-autorest/logger v0.2.1/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8=
github.com/Azure/go-autorest/tracing v0.6.0 h1:TYi4+3m5t6K48TGI9AUdb+IzbnSxvnvUMfuitfgcfuo=
github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU=
github.com/form3tech-oss/jwt-go v3.2.2+incompatible h1:TcekIExNqud5crz4xD2pavyTgWiPvpYe4Xau31I0PRk=
github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2 h1:VklqNMn3ovrHsnt90PveolxSbWFaJdECFbxSq0Mqo2M=
github.com/golang-jwt/jwt v3.2.2+incompatible h1:IfV12K8xAKAnZqdXVzCZ+TOjboZ2keLg81eXfW3O+oY=
github.com/golang-jwt/jwt v3.2.2+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0 h1:hb9wdF1z5waM+dSIICn1l0DkLVDT3hqhhQsDNUmHPRE=
golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3 h1:0GoQqolDA55aaLxZyTzK/Y2ePZzZTUrRacwib7cNsYQ=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a h1:1BGLXjeY4akVXGgbC9HugT3Jv3hCI0z56oJR5vAMgBU=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190412213103-97732733099d h1:+R4KGOnez64A81RvjARKc4UT5/tI9ujCIVX+P5KiHuI=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
2 changes: 1 addition & 1 deletion autorest/adal/token.go
Expand Up @@ -37,7 +37,7 @@ import (

"github.com/Azure/go-autorest/autorest/date"
"github.com/Azure/go-autorest/logger"
"github.com/form3tech-oss/jwt-go"
"github.com/golang-jwt/jwt"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion autorest/adal/token_test.go
Expand Up @@ -36,7 +36,7 @@ import (

"github.com/Azure/go-autorest/autorest/date"
"github.com/Azure/go-autorest/autorest/mocks"
jwt "github.com/form3tech-oss/jwt-go"
jwt "github.com/golang-jwt/jwt"
)

const (
Expand Down

0 comments on commit 5146106

Please sign in to comment.