[#131] Fix session token limit by container
Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
This commit is contained in:
parent
9df8695463
commit
dea7b39805
1 changed files with 3 additions and 1 deletions
|
@ -404,7 +404,9 @@ func buildBearerTokens(key *keys.PrivateKey, impersonate bool, table *eacl.Table
|
|||
func buildSessionToken(key *keys.PrivateKey, lifetime lifetimeOptions, ctx sessionTokenContext, gateKey *keys.PublicKey) (*session.Container, error) {
|
||||
tok := new(session.Container)
|
||||
tok.ForVerb(ctx.verb)
|
||||
tok.AppliedTo(ctx.containerID)
|
||||
if !ctx.containerID.Equals(cid.ID{}) {
|
||||
tok.ApplyOnlyTo(ctx.containerID)
|
||||
}
|
||||
|
||||
tok.SetID(uuid.New())
|
||||
tok.SetAuthKey((*frostfsecdsa.PublicKey)(gateKey))
|
||||
|
|
Loading…
Reference in a new issue