[#57] services/object: Sign requests with session key

Use key storage in object services in order to sign requests with private
session key within user session.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-09-29 19:44:59 +03:00 committed by Alex Vanin
parent 68178b8d74
commit 88459963fb
15 changed files with 89 additions and 65 deletions

View file

@ -178,11 +178,12 @@ loop:
}
} else {
rngWriter = &remoteRangeWriter{
ctx: p.ctx,
key: p.key,
node: addr,
addr: objAddr,
rng: nextRange,
ctx: p.ctx,
keyStorage: p.keyStorage,
node: addr,
token: p.prm.common.SessionToken(),
addr: objAddr,
rng: nextRange,
}
}