[#18] acl: Add impersonate field to bearer token

Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
This commit is contained in:
Denis Kirillov 2023-02-21 11:18:35 +03:00
parent cbc038f84e
commit bd50db1151
3 changed files with 6 additions and 0 deletions

View file

@ -213,6 +213,10 @@ message BearerToken {
}
// Token expiration and valid time period parameters
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 allow_impersonate = 4 [json_name="allowImpersonate"];
}
// Bearer Token body
Body body = 1 [json_name="body"];