Skip to content
Snippets Groups Projects
Unverified Commit 65b0c919 authored by Stephan Renatus's avatar Stephan Renatus Committed by GitHub
Browse files

Merge pull request #1245 from scotthew1/mock-connector-refresh

add Refresh() to mock passwordConnector
parents f903a289 27073020
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment