fix(module): rename caos to zitadel

This commit is contained in:
adlerhurst 2022-04-27 00:28:09 +02:00
parent 826c8b89d4
commit bb4d854efe
63 changed files with 127 additions and 127 deletions

View file

@ -10,9 +10,9 @@ import (
"github.com/gorilla/mux"
httphelper "github.com/caos/oidc/v2/pkg/http"
"github.com/caos/oidc/v2/pkg/oidc"
str "github.com/caos/oidc/v2/pkg/strings"
httphelper "github.com/zitadel/oidc/v2/pkg/http"
"github.com/zitadel/oidc/v2/pkg/oidc"
str "github.com/zitadel/oidc/v2/pkg/strings"
)
type AuthRequest interface {

View file

@ -13,10 +13,10 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
httphelper "github.com/caos/oidc/v2/pkg/http"
"github.com/caos/oidc/v2/pkg/oidc"
"github.com/caos/oidc/v2/pkg/op"
"github.com/caos/oidc/v2/pkg/op/mock"
httphelper "github.com/zitadel/oidc/v2/pkg/http"
"github.com/zitadel/oidc/v2/pkg/oidc"
"github.com/zitadel/oidc/v2/pkg/op"
"github.com/zitadel/oidc/v2/pkg/op/mock"
)
//

View file

@ -3,7 +3,7 @@ package op
import (
"time"
"github.com/caos/oidc/v2/pkg/oidc"
"github.com/zitadel/oidc/v2/pkg/oidc"
)
const (

View file

@ -1,7 +1,7 @@
package op
import (
"github.com/caos/oidc/v2/pkg/crypto"
"github.com/zitadel/oidc/v2/pkg/crypto"
)
type Crypto interface {

View file

@ -6,8 +6,8 @@ import (
"gopkg.in/square/go-jose.v2"
httphelper "github.com/caos/oidc/v2/pkg/http"
"github.com/caos/oidc/v2/pkg/oidc"
httphelper "github.com/zitadel/oidc/v2/pkg/http"
"github.com/zitadel/oidc/v2/pkg/oidc"
)
type DiscoverStorage interface {

View file

@ -11,9 +11,9 @@ import (
"github.com/stretchr/testify/require"
"gopkg.in/square/go-jose.v2"
"github.com/caos/oidc/v2/pkg/oidc"
"github.com/caos/oidc/v2/pkg/op"
"github.com/caos/oidc/v2/pkg/op/mock"
"github.com/zitadel/oidc/v2/pkg/oidc"
"github.com/zitadel/oidc/v2/pkg/op"
"github.com/zitadel/oidc/v2/pkg/op/mock"
)
func TestDiscover(t *testing.T) {

View file

@ -3,7 +3,7 @@ package op_test
import (
"testing"
"github.com/caos/oidc/v2/pkg/op"
"github.com/zitadel/oidc/v2/pkg/op"
)
func TestEndpoint_Path(t *testing.T) {

View file

@ -3,8 +3,8 @@ package op
import (
"net/http"
httphelper "github.com/caos/oidc/v2/pkg/http"
"github.com/caos/oidc/v2/pkg/oidc"
httphelper "github.com/zitadel/oidc/v2/pkg/http"
"github.com/zitadel/oidc/v2/pkg/oidc"
)
type ErrAuthRequest interface {

View file

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

View file

@ -11,9 +11,9 @@ import (
"github.com/stretchr/testify/assert"
"gopkg.in/square/go-jose.v2"
"github.com/caos/oidc/v2/pkg/oidc"
"github.com/caos/oidc/v2/pkg/op"
"github.com/caos/oidc/v2/pkg/op/mock"
"github.com/zitadel/oidc/v2/pkg/oidc"
"github.com/zitadel/oidc/v2/pkg/op"
"github.com/zitadel/oidc/v2/pkg/op/mock"
)
func TestKeys(t *testing.T) {

View file

@ -1,5 +1,5 @@
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/caos/oidc/pkg/op (interfaces: Authorizer)
// Source: github.com/zitadel/oidc/pkg/op (interfaces: Authorizer)
// Package mock is a generated GoMock package.
package mock
@ -10,8 +10,8 @@ import (
gomock "github.com/golang/mock/gomock"
http "github.com/caos/oidc/v2/pkg/http"
op "github.com/caos/oidc/v2/pkg/op"
http "github.com/zitadel/oidc/v2/pkg/http"
op "github.com/zitadel/oidc/v2/pkg/op"
)
// MockAuthorizer is a mock of Authorizer interface.

View file

@ -8,8 +8,8 @@ import (
"github.com/gorilla/schema"
"gopkg.in/square/go-jose.v2"
"github.com/caos/oidc/v2/pkg/oidc"
"github.com/caos/oidc/v2/pkg/op"
"github.com/zitadel/oidc/v2/pkg/oidc"
"github.com/zitadel/oidc/v2/pkg/op"
)
func NewAuthorizer(t *testing.T) op.Authorizer {

View file

@ -5,8 +5,8 @@ import (
"github.com/golang/mock/gomock"
"github.com/caos/oidc/v2/pkg/oidc"
"github.com/caos/oidc/v2/pkg/op"
"github.com/zitadel/oidc/v2/pkg/oidc"
"github.com/zitadel/oidc/v2/pkg/op"
)
func NewClient(t *testing.T) op.Client {

View file

@ -1,5 +1,5 @@
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/caos/oidc/pkg/op (interfaces: Client)
// Source: github.com/zitadel/oidc/pkg/op (interfaces: Client)
// Package mock is a generated GoMock package.
package mock
@ -10,8 +10,8 @@ import (
gomock "github.com/golang/mock/gomock"
oidc "github.com/caos/oidc/v2/pkg/oidc"
op "github.com/caos/oidc/v2/pkg/op"
oidc "github.com/zitadel/oidc/v2/pkg/oidc"
op "github.com/zitadel/oidc/v2/pkg/op"
)
// MockClient is a mock of Client interface.

View file

@ -1,5 +1,5 @@
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/caos/oidc/pkg/op (interfaces: Configuration)
// Source: github.com/zitadel/oidc/pkg/op (interfaces: Configuration)
// Package mock is a generated GoMock package.
package mock
@ -11,7 +11,7 @@ import (
gomock "github.com/golang/mock/gomock"
language "golang.org/x/text/language"
op "github.com/caos/oidc/v2/pkg/op"
op "github.com/zitadel/oidc/v2/pkg/op"
)
// MockConfiguration is a mock of Configuration interface.

View file

@ -1,5 +1,5 @@
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/caos/oidc/pkg/op (interfaces: DiscoverStorage)
// Source: github.com/zitadel/oidc/pkg/op (interfaces: DiscoverStorage)
// Package mock is a generated GoMock package.
package mock

View file

@ -1,9 +1,9 @@
package mock
//go:generate mockgen -package mock -destination ./storage.mock.go github.com/caos/oidc/pkg/op Storage
//go:generate mockgen -package mock -destination ./authorizer.mock.go github.com/caos/oidc/pkg/op Authorizer
//go:generate mockgen -package mock -destination ./client.mock.go github.com/caos/oidc/pkg/op Client
//go:generate mockgen -package mock -destination ./configuration.mock.go github.com/caos/oidc/pkg/op Configuration
//go:generate mockgen -package mock -destination ./discovery.mock.go github.com/caos/oidc/pkg/op DiscoverStorage
//go:generate mockgen -package mock -destination ./signer.mock.go github.com/caos/oidc/pkg/op SigningKey,Key
//go:generate mockgen -package mock -destination ./key.mock.go github.com/caos/oidc/pkg/op KeyProvider
//go:generate mockgen -package mock -destination ./storage.mock.go github.com/zitadel/oidc/pkg/op Storage
//go:generate mockgen -package mock -destination ./authorizer.mock.go github.com/zitadel/oidc/pkg/op Authorizer
//go:generate mockgen -package mock -destination ./client.mock.go github.com/zitadel/oidc/pkg/op Client
//go:generate mockgen -package mock -destination ./configuration.mock.go github.com/zitadel/oidc/pkg/op Configuration
//go:generate mockgen -package mock -destination ./discovery.mock.go github.com/zitadel/oidc/pkg/op DiscoverStorage
//go:generate mockgen -package mock -destination ./signer.mock.go github.com/zitadel/oidc/pkg/op SigningKey,Key
//go:generate mockgen -package mock -destination ./key.mock.go github.com/zitadel/oidc/pkg/op KeyProvider

View file

@ -1,5 +1,5 @@
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/caos/oidc/pkg/op (interfaces: KeyProvider)
// Source: github.com/zitadel/oidc/pkg/op (interfaces: KeyProvider)
// Package mock is a generated GoMock package.
package mock
@ -10,7 +10,7 @@ import (
gomock "github.com/golang/mock/gomock"
op "github.com/caos/oidc/v2/pkg/op"
op "github.com/zitadel/oidc/v2/pkg/op"
)
// MockKeyProvider is a mock of KeyProvider interface.

View file

@ -1,5 +1,5 @@
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/caos/oidc/pkg/op (interfaces: SigningKey,Key)
// Source: github.com/zitadel/oidc/pkg/op (interfaces: SigningKey,Key)
// Package mock is a generated GoMock package.
package mock

View file

@ -1,5 +1,5 @@
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/caos/oidc/pkg/op (interfaces: Storage)
// Source: github.com/zitadel/oidc/pkg/op (interfaces: Storage)
// Package mock is a generated GoMock package.
package mock
@ -12,8 +12,8 @@ import (
gomock "github.com/golang/mock/gomock"
jose "gopkg.in/square/go-jose.v2"
oidc "github.com/caos/oidc/v2/pkg/oidc"
op "github.com/caos/oidc/v2/pkg/op"
oidc "github.com/zitadel/oidc/v2/pkg/oidc"
op "github.com/zitadel/oidc/v2/pkg/op"
)
// MockStorage is a mock of Storage interface.

View file

@ -8,8 +8,8 @@ import (
"github.com/golang/mock/gomock"
"github.com/caos/oidc/v2/pkg/oidc"
"github.com/caos/oidc/v2/pkg/op"
"github.com/zitadel/oidc/v2/pkg/oidc"
"github.com/zitadel/oidc/v2/pkg/op"
)
func NewStorage(t *testing.T) op.Storage {

View file

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

View file

@ -5,7 +5,7 @@ import (
"errors"
"net/http"
httphelper "github.com/caos/oidc/v2/pkg/http"
httphelper "github.com/zitadel/oidc/v2/pkg/http"
)
type ProbesFn func(context.Context) error

View file

@ -4,8 +4,8 @@ import (
"context"
"net/http"
httphelper "github.com/caos/oidc/v2/pkg/http"
"github.com/caos/oidc/v2/pkg/oidc"
httphelper "github.com/zitadel/oidc/v2/pkg/http"
"github.com/zitadel/oidc/v2/pkg/oidc"
)
type SessionEnder interface {

View file

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

View file

@ -4,9 +4,9 @@ import (
"context"
"time"
"github.com/caos/oidc/v2/pkg/crypto"
"github.com/caos/oidc/v2/pkg/oidc"
"github.com/caos/oidc/v2/pkg/strings"
"github.com/zitadel/oidc/v2/pkg/crypto"
"github.com/zitadel/oidc/v2/pkg/oidc"
"github.com/zitadel/oidc/v2/pkg/strings"
)
type TokenCreator interface {

View file

@ -4,8 +4,8 @@ import (
"context"
"net/http"
httphelper "github.com/caos/oidc/v2/pkg/http"
"github.com/caos/oidc/v2/pkg/oidc"
httphelper "github.com/zitadel/oidc/v2/pkg/http"
"github.com/zitadel/oidc/v2/pkg/oidc"
)
//CodeExchange handles the OAuth 2.0 authorization_code grant, including

View file

@ -6,8 +6,8 @@ import (
"net/http"
"net/url"
httphelper "github.com/caos/oidc/v2/pkg/http"
"github.com/caos/oidc/v2/pkg/oidc"
httphelper "github.com/zitadel/oidc/v2/pkg/http"
"github.com/zitadel/oidc/v2/pkg/oidc"
)
type Introspector interface {

View file

@ -5,8 +5,8 @@ import (
"net/http"
"time"
httphelper "github.com/caos/oidc/v2/pkg/http"
"github.com/caos/oidc/v2/pkg/oidc"
httphelper "github.com/zitadel/oidc/v2/pkg/http"
"github.com/zitadel/oidc/v2/pkg/oidc"
)
type JWTAuthorizationGrantExchanger interface {

View file

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

View file

@ -5,8 +5,8 @@ import (
"net/http"
"net/url"
httphelper "github.com/caos/oidc/v2/pkg/http"
"github.com/caos/oidc/v2/pkg/oidc"
httphelper "github.com/zitadel/oidc/v2/pkg/http"
"github.com/zitadel/oidc/v2/pkg/oidc"
)
type Exchanger interface {

View file

@ -6,8 +6,8 @@ import (
"net/url"
"strings"
httphelper "github.com/caos/oidc/v2/pkg/http"
"github.com/caos/oidc/v2/pkg/oidc"
httphelper "github.com/zitadel/oidc/v2/pkg/http"
"github.com/zitadel/oidc/v2/pkg/oidc"
)
type Revoker interface {

View file

@ -6,8 +6,8 @@ import (
"net/http"
"strings"
httphelper "github.com/caos/oidc/v2/pkg/http"
"github.com/caos/oidc/v2/pkg/oidc"
httphelper "github.com/zitadel/oidc/v2/pkg/http"
"github.com/zitadel/oidc/v2/pkg/oidc"
)
type UserinfoProvider interface {

View file

@ -4,7 +4,7 @@ import (
"context"
"time"
"github.com/caos/oidc/v2/pkg/oidc"
"github.com/zitadel/oidc/v2/pkg/oidc"
)
type AccessTokenVerifier interface {

View file

@ -4,7 +4,7 @@ import (
"context"
"time"
"github.com/caos/oidc/v2/pkg/oidc"
"github.com/zitadel/oidc/v2/pkg/oidc"
)
type IDTokenHintVerifier interface {

View file

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