rename storage methods and fix mocks

This commit is contained in:
Livio Amstutz 2021-05-11 10:48:11 +02:00
parent 3a46908051
commit 2a11a1979e
10 changed files with 204 additions and 161 deletions

View file

@ -122,7 +122,7 @@ func AuthorizeRefreshClient(ctx context.Context, tokenReq *oidc.RefreshTokenRequ
//RefreshTokenRequestByRefreshToken returns the RefreshTokenRequest (data representing the original auth request)
//corresponding to the refresh_token from Storage or an error
func RefreshTokenRequestByRefreshToken(ctx context.Context, storage Storage, refreshToken string) (RefreshTokenRequest, error) {
request, err := storage.RefreshTokenRequestByRefreshToken(ctx, refreshToken)
request, err := storage.TokenRequestByRefreshToken(ctx, refreshToken)
if err != nil {
return nil, ErrInvalidRequest("invalid refreshToken")
}