aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/tvmauth/src/protos/ticket2.proto
blob: 47950a8861bec9a1fc270939c14b0181846eecf5 (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
32
33
package ticket2;

option go_package = "github.com/ydb-platform/ydb/library/cpp/tvmauth/src/protos";

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

message User {
    required uint64 uid = 1;
    optional uint64 porgId = 2;
}

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

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;
}