Add auth service protobuf
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
2186c5cb96
commit
cc0845f68e
31
auth.proto
Normal file
31
auth.proto
Normal file
@ -0,0 +1,31 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option go_package = "git.itzana.me/strafesnet/go-grpc/auth";
|
||||
|
||||
package auth;
|
||||
|
||||
service AuthService {
|
||||
rpc GetSession(IdMessage) returns (SessionResponse);
|
||||
rpc GetGroupRole(IdMessage) returns (RoleReponse);
|
||||
rpc ValidateSession(IdMessage) returns (ValidateResponse);
|
||||
}
|
||||
|
||||
message IdMessage {
|
||||
string SessionID = 1;
|
||||
}
|
||||
|
||||
message SessionResponse {
|
||||
string SessionID = 1;
|
||||
uint64 UserID = 2;
|
||||
string Username = 3;
|
||||
uint64 Created = 4;
|
||||
uint64 Expires = 5;
|
||||
}
|
||||
|
||||
message RoleReponse {
|
||||
uint32 Role = 1;
|
||||
}
|
||||
|
||||
message ValidateResponse {
|
||||
bool Valid = 1;
|
||||
}
|
Loading…
Reference in New Issue
Block a user