func loadRSAKey(t *testing.T, filepath string, alg jose.SignatureAlgorithm) *jose.JSONWebKey { … }
func loadRSAPrivKey(t *testing.T, filepath string, alg jose.SignatureAlgorithm) *jose.JSONWebKey { … }
func loadECDSAKey(t *testing.T, filepath string, alg jose.SignatureAlgorithm) *jose.JSONWebKey { … }
func loadECDSAPrivKey(t *testing.T, filepath string, alg jose.SignatureAlgorithm) *jose.JSONWebKey { … }
func loadKey(t *testing.T, filepath string, alg jose.SignatureAlgorithm, unmarshal func([]byte) (interface{ … }
type staticKeySet …
func (s *staticKeySet) VerifySignature(ctx context.Context, jwt string) (payload []byte, err error) { … }
var (
expired …
_ …
)
var (
now …
_ …
)
var (
valid …
_ …
)
type claimsTest …
func replace(tmpl string, v interface{ … }
func newClaimServer(t *testing.T, keys jose.JSONWebKeySet, signer jose.Signer, claimToResponseMap map[string]string, openIDConfig *string) *httptest.Server { … }
func toKeySet(keys []*jose.JSONWebKey) jose.JSONWebKeySet { … }
func (c *claimsTest) run(t *testing.T) { … }
func TestToken(t *testing.T) { … }
func TestUnmarshalClaimError(t *testing.T) { … }
func TestUnmarshalClaim(t *testing.T) { … }
type errTransport …
func (e errTransport) RoundTrip(_ *http.Request) (*http.Response, error) { … }
func testContext(t *testing.T) context.Context { … }