Skip to content

Commit

Permalink
feat(jwt): replace jwt module
Browse files Browse the repository at this point in the history
  • Loading branch information
ecktom committed Sep 8, 2021
1 parent 0dcd1f5 commit 238c117
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion credentials/signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"net/url"

"github.com/form3tech-oss/jwt-go"
"github.com/golang-jwt/jwt/v4"
)

type Signer interface {
Expand Down
2 changes: 1 addition & 1 deletion credentials/signer_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net/url"
"reflect"

"github.com/form3tech-oss/jwt-go"
"github.com/golang-jwt/jwt/v4"
"github.com/pkg/errors"
"golang.org/x/crypto/ed25519"
"gopkg.in/square/go-jose.v2"
Expand Down
2 changes: 1 addition & 1 deletion credentials/signer_default_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

"github.com/form3tech-oss/jwt-go"
"github.com/golang-jwt/jwt/v4"

"github.com/ory/oathkeeper/internal"
)
Expand Down
2 changes: 1 addition & 1 deletion credentials/signer_default_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"
"time"

"github.com/form3tech-oss/jwt-go"
"github.com/golang-jwt/jwt/v4"
"github.com/pkg/errors"
"github.com/stretchr/testify/require"

Expand Down
2 changes: 1 addition & 1 deletion credentials/verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"net/url"

"github.com/form3tech-oss/jwt-go"
"github.com/golang-jwt/jwt/v4"

"github.com/ory/fosite"
)
Expand Down
2 changes: 1 addition & 1 deletion credentials/verifier_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"crypto/rsa"
"fmt"

"github.com/form3tech-oss/jwt-go"
"github.com/golang-jwt/jwt/v4"
"github.com/pkg/errors"

"github.com/ory/fosite"
Expand Down
2 changes: 1 addition & 1 deletion credentials/verifier_default_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"
"time"

"github.com/form3tech-oss/jwt-go"
"github.com/golang-jwt/jwt/v4"
"github.com/pkg/errors"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ require (
github.com/gobuffalo/httptest v1.0.2
github.com/gobuffalo/packr/v2 v2.8.0
github.com/gobwas/glob v0.2.3
github.com/golang-jwt/jwt/v4 v4.0.0
github.com/golang/gddo v0.0.0-20190904175337-72a348e765d2
github.com/golang/mock v1.4.3
github.com/google/go-replayers/httpreplay v0.1.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,8 @@ github.com/gogo/googleapis v1.1.0/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFG
github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
github.com/gogo/protobuf v1.2.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4=
github.com/golang-jwt/jwt/v4 v4.0.0 h1:RAqyYixv1p7uEnocuy8P1nru5wprCh/MH2BIlW5z5/o=
github.com/golang-jwt/jwt/v4 v4.0.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg=
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k=
github.com/golang/gddo v0.0.0-20180828051604-96d2a289f41e/go.mod h1:xEhNfoBDX1hzLm2Nf80qUvZ2sVwoMZ8d6IE2SrsQfh4=
github.com/golang/gddo v0.0.0-20190904175337-72a348e765d2 h1:xisWqjiKEff2B0KfFYGpCqc3M3zdTz+OHQHRc09FeYk=
Expand Down
2 changes: 1 addition & 1 deletion pipeline/authn/authenticator_jwt.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"net/http"

"github.com/form3tech-oss/jwt-go"
"github.com/golang-jwt/jwt/v4"
"github.com/pkg/errors"

"github.com/ory/go-convenience/jwtx"
Expand Down
2 changes: 1 addition & 1 deletion pipeline/authn/authenticator_jwt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"testing"
"time"

"github.com/form3tech-oss/jwt-go"
"github.com/golang-jwt/jwt/v4"
"github.com/tidwall/sjson"

"github.com/ory/herodot"
Expand Down
2 changes: 1 addition & 1 deletion pipeline/mutate/mutator_id_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (

"github.com/dgraph-io/ristretto"

"github.com/form3tech-oss/jwt-go"
"github.com/golang-jwt/jwt/v4"

"github.com/pborman/uuid"
"github.com/pkg/errors"
Expand Down
2 changes: 1 addition & 1 deletion pipeline/mutate/mutator_id_token_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import (
"github.com/ory/oathkeeper/rule"
"github.com/ory/oathkeeper/x"

"github.com/form3tech-oss/jwt-go"
"github.com/golang-jwt/jwt/v4"

"github.com/ory/viper"

Expand Down
2 changes: 1 addition & 1 deletion test/e2e/okclient/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"os"
"time"

"github.com/form3tech-oss/jwt-go"
"github.com/golang-jwt/jwt/v4"
"github.com/square/go-jose"

"github.com/ory/oathkeeper/x"
Expand Down

0 comments on commit 238c117

Please sign in to comment.