From 270730205416436d226fae321e5f045dc27ebecf Mon Sep 17 00:00:00 2001 From: Scott Reisor Date: Wed, 7 Feb 2018 13:00:07 -0500 Subject: [PATCH] add Refresh() to mock passwordConnector --- connector/mock/connectortest.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/connector/mock/connectortest.go b/connector/mock/connectortest.go index e6eb5f01..ef8afd46 100644 --- a/connector/mock/connectortest.go +++ b/connector/mock/connectortest.go @@ -33,6 +33,7 @@ var ( _ connector.CallbackConnector = &Callback{} _ connector.PasswordConnector = passwordConnector{} + _ connector.RefreshConnector = passwordConnector{} ) // Callback is a connector that requires no user interaction and always returns the same identity. @@ -113,3 +114,7 @@ func (p passwordConnector) Login(ctx context.Context, s connector.Scopes, userna } func (p passwordConnector) Prompt() string { return "" } + +func (p passwordConnector) Refresh(_ context.Context, _ connector.Scopes, identity connector.Identity) (connector.Identity, error) { + return identity, nil +}