heroku / docker-registry-client

A Go API client for the v2 Docker Registry API
BSD 3-Clause "New" or "Revised" License
297 stars 225 forks source link

artifactory rejects BasicAuth on initial ping with 403 Forbidden #42

Closed jkt628 closed 4 years ago

jkt628 commented 7 years ago
package main
import (
    "fmt"
    "github.com/heroku/docker-registry-client/registry"
)
func main() {
    url, user, pass := "https://artifactory.example.com", "user", "password"
    hub, err := registry.New(url, user, pass)
    fmt.Printf("err=%v\nhub=%v\n\n", err, hub)
}

when properly configured for a registry provided by JFrog Artifactory fails with 403 Forbidden.