-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault-auth.proto
More file actions
64 lines (47 loc) · 1.27 KB
/
Copy pathdefault-auth.proto
File metadata and controls
64 lines (47 loc) · 1.27 KB
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
58
59
60
61
62
63
64
syntax = "proto3";
package auth;//TODO Always update with your project package directory
//option java_multiple_files = true;
//option java_package = "com.puumcore.syntheki.iam.services.auth";//TODO Always update with your project package directory
//option java_outer_classname = "DefaultAuthProto";
option go_package = "iam/auth";
service DefaultAuthenticationService {
rpc Authenticate (AuthReq) returns (StandardResponse) {
}
rpc Login (LoginReq) returns (StandardResponse) {
}
rpc RequestPasswordReset (UserReq) returns (StandardResponse) {
}
rpc ValidatePasswordReset (ResetValidatorReq) returns (StandardResponse) {
}
rpc PasswordReset (ResetReq) returns (StandardResponse) {
}
rpc Logout(UserReq) returns (StandardResponse) {
}
}
message LoginReq {
string channel = 1;
string username = 2;
int32 otp = 3;
}
message AuthReq {
string channel = 1;
string username = 2;
string password = 3;
}
message UserReq {
string channel = 1;
string username = 2;
}
message ResetValidatorReq {
string channel = 1;
string token = 2;
}
message ResetReq {
string channel = 1;
string token = 2;
string password = 3;
}
message StandardResponse {
uint32 code = 1;
string message = 2;
}