From e4ff8ac55b45d8eaa9af863276a08d6b3b4c2d89 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sun, 10 May 2020 12:34:01 -0600 Subject: [PATCH] update canonical import path --- doc.go | 2 +- go.mod | 2 +- keyfetch/fetch.go | 4 ++-- keyfetch/fetch_test.go | 4 ++-- keyfetch/uncached/fetch.go | 2 +- keyfetch/uncached/fetch_test.go | 2 +- keyserve/doc.go | 2 +- keyserve/keyserve.go | 2 +- keyserve/keyserve_test.go | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/doc.go b/doc.go index 94dabde..378c30c 100644 --- a/doc.go +++ b/doc.go @@ -17,7 +17,7 @@ Convenience functions are available which will fetch keys (or retrieve them from cache) via OIDC, .well-known/jwks.json, and direct urls. All keys are cached by Thumbprint, as well as kid(@issuer), if available. - import "github.com/big-squid/go-keypairs/keyfetch" + import "git.rootprojects.org/root/keypairs/keyfetch" pubs, err := keyfetch.OIDCJWKs("https://example.com/") pubs, err := keyfetch.OIDCJWK(ThumbOrKeyID, "https://example.com/") diff --git a/go.mod b/go.mod index 312114d..4021a21 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module github.com/big-squid/go-keypairs +module git.rootprojects.org/root/keypairs go 1.12 diff --git a/keyfetch/fetch.go b/keyfetch/fetch.go index 7c23569..c609531 100644 --- a/keyfetch/fetch.go +++ b/keyfetch/fetch.go @@ -19,8 +19,8 @@ import ( "sync" "time" - keypairs "github.com/big-squid/go-keypairs" - "github.com/big-squid/go-keypairs/keyfetch/uncached" + "git.rootprojects.org/root/keypairs" + "git.rootprojects.org/root/keypairs/keyfetch/uncached" ) // TODO should be ErrInvalidJWKURL diff --git a/keyfetch/fetch_test.go b/keyfetch/fetch_test.go index 4b90aaa..5f2dee7 100644 --- a/keyfetch/fetch_test.go +++ b/keyfetch/fetch_test.go @@ -4,8 +4,8 @@ import ( "testing" "time" - keypairs "github.com/big-squid/go-keypairs" - "github.com/big-squid/go-keypairs/keyfetch/uncached" + "git.rootprojects.org/root/keypairs" + "git.rootprojects.org/root/keypairs/keyfetch/uncached" ) var pubkey keypairs.PublicKey diff --git a/keyfetch/uncached/fetch.go b/keyfetch/uncached/fetch.go index 5d68d23..2e1c265 100644 --- a/keyfetch/uncached/fetch.go +++ b/keyfetch/uncached/fetch.go @@ -12,7 +12,7 @@ import ( "strings" "time" - keypairs "github.com/big-squid/go-keypairs" + "git.rootprojects.org/root/keypairs" ) // OIDCJWKs gets the OpenID Connect configuration from the baseURL and then calls JWKs with the specified jwks_uri diff --git a/keyfetch/uncached/fetch_test.go b/keyfetch/uncached/fetch_test.go index 3e72264..604612a 100644 --- a/keyfetch/uncached/fetch_test.go +++ b/keyfetch/uncached/fetch_test.go @@ -6,7 +6,7 @@ import ( "errors" "testing" - keypairs "github.com/big-squid/go-keypairs" + "git.rootprojects.org/root/keypairs" ) func TestJWKs(t *testing.T) { diff --git a/keyserve/doc.go b/keyserve/doc.go index 4a25a5b..c50b656 100644 --- a/keyserve/doc.go +++ b/keyserve/doc.go @@ -12,7 +12,7 @@ Basic Usage "crypto/rand" "time" - "github.com/big-squid/go-keypairs/keyserve" + "git.rootprojects.org/root/keypairs/keyserve" ) key, _ := ecdsa.GenerateKey(elliptic.P256, rand.Reader) diff --git a/keyserve/keyserve.go b/keyserve/keyserve.go index aa5bcdc..400d7d2 100644 --- a/keyserve/keyserve.go +++ b/keyserve/keyserve.go @@ -11,7 +11,7 @@ import ( "strings" "time" - keypairs "github.com/big-squid/go-keypairs" + "git.rootprojects.org/root/keypairs" ) // DefaultExpiresIn is 3 days diff --git a/keyserve/keyserve_test.go b/keyserve/keyserve_test.go index acc59c0..5111258 100644 --- a/keyserve/keyserve_test.go +++ b/keyserve/keyserve_test.go @@ -13,7 +13,7 @@ import ( "testing" "time" - keypairs "github.com/big-squid/go-keypairs" + "git.rootprojects.org/root/keypairs" ) func TestServeKeys(t *testing.T) {