aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/tvmauth/src/protos/ticket2.proto
blob: 66c00a7d01c0a807a7fa6dac94adfac0e6e4f77e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package ticket2;

option go_package = "a.yandex-team.ru/library/cpp/tvmauth/src/protos";

import "library/cpp/tvmauth/src/protos/tvm_keys.proto";

message User {
    required uint64 uid = 1;
}

message UserTicket {
    repeated User users = 1;
    required uint64 defaultUid = 2;
    repeated string scopes = 3;
    required uint32 entryPoint = 4;
    required tvm_keys.BbEnvType env = 5;
}

message ServiceTicket {
    required uint32 srcClientId = 1;
    required uint32 dstClientId = 2;
    repeated string scopes = 3;
    optional uint64 issuerUid = 4;
}

message Ticket {
    required uint32 keyId = 1;
    required int64  expirationTime = 2;
    optional UserTicket user = 3;
    optional ServiceTicket service = 4;
}