[#75] Add clarification for BearerToken.body.owner_id

Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
This commit is contained in:
Stanislav Bogatyrev 2020-10-20 22:44:00 +03:00 committed by Stanislav Bogatyrev
parent 0dd5b92edc
commit bcc6f68eda

View file

@ -149,6 +149,9 @@ message EACLTable {
// like [JWT](https://jwt.io), it has a limited lifetime and scope, hence can be // like [JWT](https://jwt.io), it has a limited lifetime and scope, hence can be
// used in the similar use cases, like providing authorisation to externally // used in the similar use cases, like providing authorisation to externally
// authenticated party. // authenticated party.
//
// BearerToken can be issued only by container's owner and must be signed using
// the key associated with container's `OwnerID`.
message BearerToken { message BearerToken {
// Bearer Token body structure contains Extended ACL table issued by container // Bearer Token body structure contains Extended ACL table issued by container
// owner with additional information preventing token's abuse. // owner with additional information preventing token's abuse.
@ -157,8 +160,8 @@ message BearerToken {
// container // container
EACLTable eacl_table = 1 [json_name="eaclTable"]; EACLTable eacl_table = 1 [json_name="eaclTable"];
// `OwnerID` to whom the token was issued. MUST match with the request // `OwnerID` to whom the token was issued. Must match the request
// originator's `OwnerID` // originator's `OwnerID`. If empty, any token bearer will be accepted.
neo.fs.v2.refs.OwnerID owner_id = 2 [json_name="ownerID"]; neo.fs.v2.refs.OwnerID owner_id = 2 [json_name="ownerID"];
// Lifetime parameters of the token. Filed names taken from // Lifetime parameters of the token. Filed names taken from