Skip to content

Commit

Permalink
fix: support floats in JWT claims
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Apr 2, 2021
1 parent f3a6aa5 commit 4a6f545
Show file tree
Hide file tree
Showing 8 changed files with 83 additions and 1,002 deletions.
2 changes: 1 addition & 1 deletion authorization.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/http"
"net/url"

"github.com/form3tech-oss/jwt-go"
"github.com/dunglas/jwt-go"
)

// claims contains Mercure's JWT claims.
Expand Down
2 changes: 1 addition & 1 deletion authorization_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"net/http"
"testing"

"github.com/form3tech-oss/jwt-go"
"github.com/dunglas/jwt-go"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions caddy/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ replace github.com/dunglas/mercure => ../

require (
github.com/caddyserver/caddy/v2 v2.3.0
github.com/dunglas/mercure v0.11.0
github.com/prometheus/client_golang v1.9.0
github.com/dunglas/mercure v0.11.1
github.com/prometheus/client_golang v1.10.0
github.com/stretchr/testify v1.7.0
go.uber.org/zap v1.16.0
)
413 changes: 33 additions & 380 deletions caddy/go.sum

Large diffs are not rendered by default.

22 changes: 10 additions & 12 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,23 @@ require (
github.com/OneOfOne/xxhash v1.2.8 // indirect
github.com/dgraph-io/ristretto v0.0.3
github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect
github.com/dunglas/mercure/caddy v0.0.0-20210215213405-dc6a34ff0fee // indirect
github.com/form3tech-oss/jwt-go v3.2.2+incompatible
github.com/dunglas/jwt-go v3.2.1-0.20210401222640-f048a7c297bf+incompatible
github.com/fsnotify/fsnotify v1.4.9 // indirect
github.com/gofrs/uuid v4.0.0+incompatible
github.com/google/go-cmp v0.5.4 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/gopherjs/gopherjs v0.0.0-20200217142428-fce0ec30dd00 // indirect
github.com/gorilla/handlers v1.5.1
github.com/gorilla/mux v1.8.0
github.com/kr/text v0.2.0 // indirect
github.com/magiconair/properties v1.8.4 // indirect
github.com/magiconair/properties v1.8.5 // indirect
github.com/mitchellh/mapstructure v1.4.1 // indirect
github.com/pelletier/go-toml v1.8.1 // indirect
github.com/prometheus/client_golang v1.9.0
github.com/prometheus/client_golang v1.10.0
github.com/prometheus/client_model v0.2.0
github.com/prometheus/procfs v0.3.0 // indirect
github.com/prometheus/common v0.20.0 // indirect
github.com/smartystreets/assertions v1.2.0 // indirect
github.com/spaolacci/murmur3 v1.1.0 // indirect
github.com/spf13/afero v1.5.1 // indirect
github.com/spf13/afero v1.6.0 // indirect
github.com/spf13/cast v1.3.1 // indirect
github.com/spf13/cobra v1.1.1
github.com/spf13/jwalterweatherman v1.1.0 // indirect
Expand All @@ -35,14 +34,13 @@ require (
go.etcd.io/bbolt v1.3.5
go.uber.org/multierr v1.6.0 // indirect
go.uber.org/zap v1.16.0
golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad
golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2
golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5 // indirect
golang.org/x/mod v0.4.0 // indirect
golang.org/x/net v0.0.0-20201224014010-6772e930b67b // indirect
golang.org/x/sys v0.0.0-20210113181707-4bcb84eeeb78 // indirect
golang.org/x/text v0.3.5 // indirect
golang.org/x/net v0.0.0-20210331212208-0fccb6fa2b5c // indirect
golang.org/x/sys v0.0.0-20210331175145-43e1dd70ce54 // indirect
golang.org/x/text v0.3.6 // indirect
golang.org/x/tools v0.0.0-20210114065538-d78b04bdf963 // indirect
google.golang.org/protobuf v1.25.0 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/ini.v1 v1.62.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
Expand Down
638 changes: 34 additions & 604 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion hub.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net/http"
"time"

"github.com/form3tech-oss/jwt-go"
"github.com/dunglas/jwt-go"
"github.com/spf13/viper"
"go.uber.org/zap"
)
Expand Down
2 changes: 1 addition & 1 deletion hub_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"sync"
"testing"

"github.com/form3tech-oss/jwt-go"
"github.com/dunglas/jwt-go"
"github.com/spf13/viper"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down

0 comments on commit 4a6f545

Please sign in to comment.