Allow an alias for an identity name

This commit is contained in:
Ingo Oppermann
2023-08-03 17:22:16 +03:00
parent 90974fed30
commit 2c2d460a19
3 changed files with 264 additions and 24 deletions

View File

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