Livio Amstutz 57b277bc7c
fix: improve key rotation (#1328)
* fix: improve key rotation

* update oidc pkg version
2021-02-23 08:32:00 +01:00

13 lines
252 B
Go

package repository
import (
"context"
"gopkg.in/square/go-jose.v2"
)
type KeyRepository interface {
GetSigningKey(ctx context.Context, keyCh chan<- jose.SigningKey, algorithm string)
GetKeySet(ctx context.Context) (*jose.JSONWebKeySet, error)
}