-
Notifications
You must be signed in to change notification settings - Fork 7
/
auth.proto
57 lines (44 loc) · 1.31 KB
/
auth.proto
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
syntax = "proto3";
import "google/protobuf/empty.proto";
option java_multiple_files = true;
option java_package = "ua.gov.diia.auth";
option java_outer_classname = "DiiaAuthService";
service AuthService {
rpc completeUserAuthSteps (CompleteUserAuthStepsRequest) returns (google.protobuf.Empty) {}
rpc getUserOpenIdData (GetUserOpenIdDataRequest) returns (UserOpenIdData) {}
rpc getSessionById (GetSessionByIdRequest) returns (SessionByIdResponse) {}
rpc removeTokensByUserIdentifier (RemoveTokensByUserIdentifierRequest) returns (google.protobuf.Empty) {}
}
message CompleteUserAuthStepsRequest {
string schemaCode = 1;
string processId = 2;
}
message GetUserOpenIdDataRequest {
string token = 1;
}
message GetSessionByIdRequest {
string id = 1;
string userIdentifier = 2;
}
message SessionByIdResponse {
bool status = 1;
string platformType = 2;
string platformVersion = 3;
string appVersion = 4;
}
message UserOpenIdData {
string userIdentifier = 1;
string firstName = 2;
string lastName = 3;
string gender = 4;
string birthDay = 5;
string rnokpp = 6;
optional string email = 7;
optional string givenName = 8;
optional string phoneNumber = 9;
optional string unzr = 10;
}
message RemoveTokensByUserIdentifierRequest {
string userIdentifier = 1;
string sessionType = 2;
}