update canonical import path

このコミットが含まれているのは:
AJ ONeal 2020-05-10 12:34:01 -06:00
コミット e4ff8ac55b
9個のファイルの変更11行の追加11行の削除

2
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/")

2
go.mod
ファイルの表示

@ -1,3 +1,3 @@
module github.com/big-squid/go-keypairs
module git.rootprojects.org/root/keypairs
go 1.12

ファイルの表示

@ -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

ファイルの表示

@ -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

ファイルの表示

@ -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

ファイルの表示

@ -6,7 +6,7 @@ import (
"errors"
"testing"
keypairs "github.com/big-squid/go-keypairs"
"git.rootprojects.org/root/keypairs"
)
func TestJWKs(t *testing.T) {

ファイルの表示

@ -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)

ファイルの表示

@ -11,7 +11,7 @@ import (
"strings"
"time"
keypairs "github.com/big-squid/go-keypairs"
"git.rootprojects.org/root/keypairs"
)
// DefaultExpiresIn is 3 days

ファイルの表示

@ -13,7 +13,7 @@ import (
"testing"
"time"
keypairs "github.com/big-squid/go-keypairs"
"git.rootprojects.org/root/keypairs"
)
func TestServeKeys(t *testing.T) {