Return *url.Userinfo from identity.GetServiceBasicAuth()

This commit is contained in:
Ingo Oppermann
2023-08-08 17:19:57 +03:00
parent 8caab33ba8
commit 3d7230444f
5 changed files with 29 additions and 21 deletions

View File

@@ -979,7 +979,7 @@ func (a *api) start(ctx context.Context) error {
}
if identity != nil {
u.User = url.UserPassword(identity.Name(), identity.GetServiceBasicAuth())
u.User = identity.GetServiceBasicAuth()
} else {
u.User = url.User(config.Owner)
}
@@ -1007,7 +1007,7 @@ func (a *api) start(ctx context.Context) error {
}
if identity != nil {
u.User = url.UserPassword(identity.Name(), identity.GetServiceBasicAuth())
u.User = identity.GetServiceBasicAuth()
} else {
u.User = url.User(config.Owner)
}
@@ -1037,7 +1037,9 @@ func (a *api) start(ctx context.Context) error {
}
if identity != nil {
u.User = url.UserPassword(identity.Name(), identity.GetServiceBasicAuth())
u.User = identity.GetServiceBasicAuth()
} else {
u.User = url.User(config.Owner)
}
if len(config.Domain) != 0 {