Commit 27073020 authored by Scott Reisor's avatar Scott Reisor Committed by Scott Reisor

add Refresh() to mock passwordConnector

parent 316acbee
......@@ -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
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment