deps: upgrade to go-jose v3 (#2284)

This commit is contained in:
Caleb Doxsey 2021-06-10 09:35:44 -06:00 committed by GitHub
parent 5813487cfc
commit f9675f61cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 34 additions and 34 deletions

View file

@ -10,8 +10,8 @@ import (
"sync"
"time"
"github.com/go-jose/go-jose/v3"
"github.com/martinlindhe/base36"
"gopkg.in/square/go-jose.v2"
"github.com/pomerium/pomerium/pkg/cryptutil"
)

View file

@ -9,9 +9,9 @@ import (
"testing"
"time"
"github.com/go-jose/go-jose/v3"
"github.com/google/uuid"
"github.com/stretchr/testify/assert"
"gopkg.in/square/go-jose.v2"
)
func TestLocalJWTCache(t *testing.T) {

View file

@ -5,8 +5,8 @@ package jws
import (
"github.com/pomerium/pomerium/internal/encoding"
jose "gopkg.in/square/go-jose.v2"
"gopkg.in/square/go-jose.v2/jwt"
"github.com/go-jose/go-jose/v3"
"github.com/go-jose/go-jose/v3/jwt"
)
// JSONWebSigner is the struct representing a signed JWT.

View file

@ -13,8 +13,8 @@ import (
"strings"
"time"
"github.com/go-jose/go-jose/v3/jwt"
"golang.org/x/oauth2"
"gopkg.in/square/go-jose.v2/jwt"
"github.com/pomerium/pomerium/internal/httputil"
"github.com/pomerium/pomerium/internal/identity/identity"

View file

@ -10,8 +10,8 @@ import (
"github.com/pomerium/pomerium/internal/sessions"
"github.com/go-jose/go-jose/v3/jwt"
"github.com/google/go-cmp/cmp"
"gopkg.in/square/go-jose.v2/jwt"
"github.com/pomerium/pomerium/internal/encoding/ecjson"
"github.com/pomerium/pomerium/pkg/cryptutil"

View file

@ -12,8 +12,8 @@ import (
"github.com/pomerium/pomerium/internal/sessions"
"github.com/pomerium/pomerium/pkg/cryptutil"
"github.com/go-jose/go-jose/v3/jwt"
"github.com/google/go-cmp/cmp"
"gopkg.in/square/go-jose.v2/jwt"
)
func testAuthorizer(next http.Handler) http.Handler {

View file

@ -9,8 +9,8 @@ import (
"testing"
"time"
"github.com/go-jose/go-jose/v3/jwt"
"github.com/google/go-cmp/cmp"
"gopkg.in/square/go-jose.v2/jwt"
"github.com/pomerium/pomerium/internal/encoding/jws"
"github.com/pomerium/pomerium/internal/sessions"

View file

@ -12,8 +12,8 @@ import (
"github.com/pomerium/pomerium/internal/sessions"
"github.com/pomerium/pomerium/pkg/cryptutil"
"github.com/go-jose/go-jose/v3/jwt"
"github.com/google/go-cmp/cmp"
"gopkg.in/square/go-jose.v2/jwt"
)
func testAuthorizer(next http.Handler) http.Handler {

View file

@ -6,7 +6,7 @@ import (
"fmt"
"time"
"gopkg.in/square/go-jose.v2/jwt"
"github.com/go-jose/go-jose/v3/jwt"
)
// ErrMissingID is the error for a session state that has no ID set.

View file

@ -5,9 +5,9 @@ import (
"testing"
"time"
"github.com/go-jose/go-jose/v3/jwt"
"github.com/google/go-cmp/cmp"
"golang.org/x/oauth2"
"gopkg.in/square/go-jose.v2/jwt"
)
func TestState_IsExpired(t *testing.T) {