fix: create access token from storage

This commit is contained in:
Livio Amstutz 2020-02-27 17:06:32 +01:00
parent ddcf7076f8
commit 5e7e5ebe3a
8 changed files with 44 additions and 31 deletions

View file

@ -14,6 +14,8 @@ type AuthStorage interface {
AuthRequestByID(context.Context, string) (AuthRequest, error)
DeleteAuthRequest(context.Context, string) error
CreateToken(context.Context, AuthRequest) (string, time.Time, error)
GetSigningKey(context.Context, chan<- jose.SigningKey, chan<- error, <-chan time.Time)
GetKeySet(context.Context) (*jose.JSONWebKeySet, error)
SaveNewKeyPair(context.Context) error