Add ocis-proxy reference and comment, explaining that opaqueId = account uuid

This commit is contained in:
Benedikt Kulmann
2020-05-27 10:37:37 +02:00
parent 5641fa4a4c
commit 1403563be9

View File

@@ -46,6 +46,8 @@ func ExtractAccountUUID(opts ...account.Option) func(http.Handler) http.Handler
return
}
// Important: user.Id.OpaqueId is the AccountUUID. Set this way in the account uuid middleware in ocis-proxy.
// https://github.com/owncloud/ocis-proxy/blob/ea254d6036592cf9469d757d1295e0c4309d1e63/pkg/middleware/account_uuid.go#L109
ctx := context.WithValue(r.Context(), UUIDKey, user.Id.OpaqueId)
next.ServeHTTP(w, r.WithContext(ctx))
})