-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add excluded auth for login auth service
- Loading branch information
1 parent
00e9b60
commit a306f4b
Showing
2 changed files
with
76 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
syntax = "proto3"; | ||
|
||
option java_package = "com.soulfiremc.grpc.generated"; | ||
option java_multiple_files = true; | ||
|
||
package soulfire.v1; | ||
|
||
message LoginRequest { | ||
string username = 1; | ||
} | ||
|
||
message NextAuthFlowResponse { | ||
message EmailCode { | ||
uint32 digits = 1; | ||
} | ||
|
||
message Success { | ||
string token = 1; | ||
} | ||
|
||
message Failure { | ||
string message = 1; | ||
} | ||
|
||
string authFlowToken = 1; | ||
oneof next { | ||
EmailCode email_code = 2; | ||
Success success = 3; | ||
Failure failure = 4; | ||
} | ||
} | ||
|
||
message EmailCodeRequest { | ||
repeated uint32 code = 1; | ||
} | ||
|
||
service LoginService { | ||
rpc login(LoginRequest) returns (NextAuthFlowResponse); | ||
rpc emailCode(EmailCodeRequest) returns (NextAuthFlowResponse); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters