diff --git a/bootstrap/handlers/secret.go b/bootstrap/handlers/secret.go index 4cb93ea4..d85ac7f9 100644 --- a/bootstrap/handlers/secret.go +++ b/bootstrap/handlers/secret.go @@ -68,7 +68,7 @@ func SecureProviderBootstrapHandler( var secretClient secrets.SecretClient lc.Info("Attempting to create secret client") - secretClient, err = secrets.NewUserClient(ctx, secretConfig, lc, secureProvider.DefaultTokenExpiredCallback) + secretClient, err = secrets.NewSecretsClient(ctx, secretConfig, lc, secureProvider.DefaultTokenExpiredCallback) if err == nil { secureProvider.SetClient(secretClient) provider = secureProvider diff --git a/go.mod b/go.mod index 31c63ac9..bf796c22 100644 --- a/go.mod +++ b/go.mod @@ -11,8 +11,6 @@ require ( github.com/stretchr/testify v1.7.0 ) -replace ( - github.com/edgexfoundry/go-mod-secrets/v2 => ../go-mod-secrets -) +replace github.com/edgexfoundry/go-mod-secrets/v2 => ../go-mod-secrets go 1.15