aboutsummaryrefslogtreecommitdiff
path: root/src/server/proto/Login/Login.proto
blob: 35f690a5d4c3f188bb605953d377be81135aaf4f (plain)
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
syntax = "proto2";

package Battlenet.JSON.Login;

option optimize_for = CODE_SIZE;

enum FormType {
  LOGIN_FORM = 1;
}

message FormInput {
  required string input_id = 1;
  required string type = 2;
  required string label = 3;
  optional uint32 max_length = 4;
}

message FormInputs {
  required FormType type = 1;
  repeated FormInput inputs = 2;
}

message FormInputValue {
  required string input_id = 1;
  required string value = 2;
}

message LoginForm {
  required string platform_id = 1;
  required string program_id = 2;
  required string version = 3;
  repeated FormInputValue inputs = 4;
}

enum AuthenticationState {
  LOGIN = 1;
  LEGAL = 2;
  AUTHENTICATOR = 3;
  DONE = 4;
}

message LoginResult {
  required AuthenticationState authentication_state = 1;
  optional string error_code = 2;
  optional string error_message = 3;
  optional string url = 4;
  optional string login_ticket = 5;
}