forked from mystiq/dex
Merge pull request #1245 from scotthew1/mock-connector-refresh
add Refresh() to mock passwordConnector
This commit is contained in:
commit
65b0c91992
1 changed files with 5 additions and 0 deletions
|
@ -33,6 +33,7 @@ var (
|
||||||
_ connector.CallbackConnector = &Callback{}
|
_ connector.CallbackConnector = &Callback{}
|
||||||
|
|
||||||
_ connector.PasswordConnector = passwordConnector{}
|
_ connector.PasswordConnector = passwordConnector{}
|
||||||
|
_ connector.RefreshConnector = passwordConnector{}
|
||||||
)
|
)
|
||||||
|
|
||||||
// Callback is a connector that requires no user interaction and always returns the same identity.
|
// 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) Prompt() string { return "" }
|
||||||
|
|
||||||
|
func (p passwordConnector) Refresh(_ context.Context, _ connector.Scopes, identity connector.Identity) (connector.Identity, error) {
|
||||||
|
return identity, nil
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue