Fix service user usage for eos

This commit is contained in:
Benedikt Kulmann
2020-10-05 12:24:27 +02:00
parent 673d7cf50c
commit 862329cce0
4 changed files with 51 additions and 29 deletions
+6 -2
View File
@@ -211,10 +211,14 @@ func (r CS3Repo) DeleteGroup(ctx context.Context, id string) (err error) {
}
func (r CS3Repo) authenticate(ctx context.Context) (token string, err error) {
return r.tm.MintToken(ctx, &user.User{
u := &user.User{
Id: &user.UserId{},
Groups: []string{},
})
}
if r.cfg.ServiceUser.Username != "" {
u.Id.OpaqueId = r.cfg.ServiceUser.UUID
}
return r.tm.MintToken(ctx, u)
}
func (r CS3Repo) accountURL(id string) string {