|
|
@ -10,7 +10,7 @@ import ( |
|
|
|
type FakeSigningKeysService struct { |
|
|
|
type FakeSigningKeysService struct { |
|
|
|
ExpectedJSONWebKeySet jose.JSONWebKeySet |
|
|
|
ExpectedJSONWebKeySet jose.JSONWebKeySet |
|
|
|
ExpectedKeyID string |
|
|
|
ExpectedKeyID string |
|
|
|
ExpectedSinger crypto.Signer |
|
|
|
ExpectedSigner crypto.Signer |
|
|
|
ExpectedError error |
|
|
|
ExpectedError error |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -19,5 +19,5 @@ func (s *FakeSigningKeysService) GetJWKS(ctx context.Context) (jose.JSONWebKeySe |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (s *FakeSigningKeysService) GetOrCreatePrivateKey(ctx context.Context, keyPrefix string, alg jose.SignatureAlgorithm) (string, crypto.Signer, error) { |
|
|
|
func (s *FakeSigningKeysService) GetOrCreatePrivateKey(ctx context.Context, keyPrefix string, alg jose.SignatureAlgorithm) (string, crypto.Signer, error) { |
|
|
|
return s.ExpectedKeyID, s.ExpectedSinger, s.ExpectedError |
|
|
|
return s.ExpectedKeyID, s.ExpectedSigner, s.ExpectedError |
|
|
|
} |
|
|
|
} |
|
|
|