auth provider
This commit is contained in:
parent
08d8450dac
commit
a66873d12d
6 changed files with 432 additions and 0 deletions
19
proto/verify.proto
Normal file
19
proto/verify.proto
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
syntax = "proto3";
|
||||
|
||||
package verifyAuth.v1;
|
||||
option go_package = "/pkg/verify/v1;verifyV1";
|
||||
|
||||
message VerifyTokenRequest {
|
||||
string sessionToken = 1;
|
||||
int32 serviceId = 2;
|
||||
}
|
||||
|
||||
message VerifyTokenResponse {
|
||||
string userUuid = 1;
|
||||
bool isValid = 2;
|
||||
int32 accessCode = 3;
|
||||
}
|
||||
|
||||
service AuthService {
|
||||
rpc VerifyToken(VerifyTokenRequest) returns (VerifyTokenResponse);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue