forked from TrueCloudLab/frostfs-api
[nspcc-dev#241] Add impersonate field to bearer token
Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
This commit is contained in:
parent
90be159ed4
commit
a8344d964d
1 changed files with 4 additions and 0 deletions
|
@ -213,6 +213,10 @@ message BearerToken {
|
||||||
}
|
}
|
||||||
// Token expiration and valid time period parameters
|
// Token expiration and valid time period parameters
|
||||||
TokenLifetime lifetime = 3 [json_name="lifetime"];
|
TokenLifetime lifetime = 3 [json_name="lifetime"];
|
||||||
|
|
||||||
|
// AllowImpersonate flag to consider token signer as request owner.
|
||||||
|
// If this field is true extended ACL table in token body isn't processed.
|
||||||
|
bool AllowImpersonate = 4 [json_name="allow_impersonate"];
|
||||||
}
|
}
|
||||||
// Bearer Token body
|
// Bearer Token body
|
||||||
Body body = 1 [json_name="body"];
|
Body body = 1 [json_name="body"];
|
||||||
|
|
Loading…
Reference in a new issue