Extend authChallenger interface to remove type cast.
Signed-off-by: Richard Scothern <richard.scothern@gmail.com>
This commit is contained in:
@@ -25,7 +25,7 @@ func (c credentials) Basic(u *url.URL) (string, string) {
|
||||
return up.username, up.password
|
||||
}
|
||||
|
||||
// ConfigureAuth stores credentials for challenge responses
|
||||
// configureAuth stores credentials for challenge responses
|
||||
func configureAuth(username, password string) (auth.CredentialStore, error) {
|
||||
creds := map[string]userpass{
|
||||
tokenURL: {
|
||||
|
Reference in New Issue
Block a user