update go module version to v2

This commit is contained in:
Livio Amstutz 2022-04-22 16:00:02 +02:00
parent 33a38e9c07
commit 7dd0ea5780
No known key found for this signature in database
GPG key ID: 7AB5FDFBCA448635
59 changed files with 116 additions and 113 deletions

View file

@ -10,9 +10,9 @@ import (
"golang.org/x/oauth2"
"gopkg.in/square/go-jose.v2"
"github.com/caos/oidc/pkg/crypto"
httphelper "github.com/caos/oidc/pkg/http"
"github.com/caos/oidc/pkg/oidc"
"github.com/caos/oidc/v2/pkg/crypto"
httphelper "github.com/caos/oidc/v2/pkg/http"
"github.com/caos/oidc/v2/pkg/oidc"
)
var (

View file

@ -5,8 +5,8 @@ import (
"golang.org/x/oauth2"
"github.com/caos/oidc/pkg/http"
"github.com/caos/oidc/pkg/oidc"
"github.com/caos/oidc/v2/pkg/http"
"github.com/caos/oidc/v2/pkg/oidc"
)
//JWTProfileExchange handles the oauth2 jwt profile exchange

View file

@ -7,8 +7,8 @@ import (
"golang.org/x/oauth2"
"gopkg.in/square/go-jose.v2"
"github.com/caos/oidc/pkg/client"
"github.com/caos/oidc/pkg/oidc"
"github.com/caos/oidc/v2/pkg/client"
"github.com/caos/oidc/v2/pkg/oidc"
)
//jwtProfileTokenSource implement the oauth2.TokenSource

View file

@ -4,9 +4,9 @@ import (
"context"
"net/http"
"github.com/caos/oidc/pkg/client/rp"
httphelper "github.com/caos/oidc/pkg/http"
"github.com/caos/oidc/pkg/oidc"
"github.com/caos/oidc/v2/pkg/client/rp"
httphelper "github.com/caos/oidc/v2/pkg/http"
"github.com/caos/oidc/v2/pkg/oidc"
)
const (

View file

@ -1,7 +1,7 @@
package rp
import (
"github.com/caos/oidc/pkg/oidc/grants/tokenexchange"
"github.com/caos/oidc/v2/pkg/oidc/grants/tokenexchange"
)
//DelegationTokenRequest is an implementation of TokenExchangeRequest

View file

@ -9,8 +9,8 @@ import (
"gopkg.in/square/go-jose.v2"
httphelper "github.com/caos/oidc/pkg/http"
"github.com/caos/oidc/pkg/oidc"
httphelper "github.com/caos/oidc/v2/pkg/http"
"github.com/caos/oidc/v2/pkg/oidc"
)
func NewRemoteKeySet(client *http.Client, jwksURL string, opts ...func(*remoteKeySet)) oidc.KeySet {

View file

@ -10,7 +10,7 @@ import (
"github.com/golang/mock/gomock"
"github.com/caos/oidc/pkg/oidc"
"github.com/caos/oidc/v2/pkg/oidc"
)
// MockVerifier is a mock of Verifier interface

View file

@ -12,9 +12,9 @@ import (
"golang.org/x/oauth2"
"gopkg.in/square/go-jose.v2"
"github.com/caos/oidc/pkg/client"
httphelper "github.com/caos/oidc/pkg/http"
"github.com/caos/oidc/pkg/oidc"
"github.com/caos/oidc/v2/pkg/client"
httphelper "github.com/caos/oidc/v2/pkg/http"
"github.com/caos/oidc/v2/pkg/oidc"
)
const (

View file

@ -5,7 +5,7 @@ import (
"golang.org/x/oauth2"
"github.com/caos/oidc/pkg/oidc/grants/tokenexchange"
"github.com/caos/oidc/v2/pkg/oidc/grants/tokenexchange"
)
//TokenExchangeRP extends the `RelyingParty` interface for the *draft* oauth2 `Token Exchange`

View file

@ -6,7 +6,7 @@ import (
"gopkg.in/square/go-jose.v2"
"github.com/caos/oidc/pkg/oidc"
"github.com/caos/oidc/v2/pkg/oidc"
)
type IDTokenVerifier interface {

View file

@ -6,9 +6,9 @@ import (
"net/http"
"time"
"github.com/caos/oidc/pkg/client"
httphelper "github.com/caos/oidc/pkg/http"
"github.com/caos/oidc/pkg/oidc"
"github.com/caos/oidc/v2/pkg/client"
httphelper "github.com/caos/oidc/v2/pkg/http"
"github.com/caos/oidc/v2/pkg/oidc"
)
type ResourceServer interface {