Files
protobufs/auth.proto
itzaname c400d2d58b
All checks were successful
continuous-integration/drone/push Build is passing
Add search and avatar services
2026-02-28 18:04:45 -05:00

60 lines
1.1 KiB
Protocol Buffer

syntax = "proto3";
option go_package = "git.itzana.me/strafesnet/go-grpc/auth";
package auth;
import "google/protobuf/empty.proto";
service AuthService {
rpc GetSessionUser(IdMessage) returns (SessionUserResponse);
rpc GetGroupRole(IdMessage) returns (RoleReponse);
rpc ValidateSession(IdMessage) returns (ValidateResponse);
rpc GetAuthMetadata(google.protobuf.Empty) returns (AuthMetadataResponse);
rpc GetAvatars(AvatarListRequest) returns (AvatarListResponse);
}
message IdMessage {
string SessionID = 1;
}
message SessionUserResponse {
uint64 UserID = 1;
string Username = 2;
string AvatarURL = 3;
}
message RoleReponse {
repeated RoleItem Roles = 1;
}
message RoleItem {
string ID = 1;
string DisplayName = 2;
int32 Rank = 3;
}
message ValidateResponse {
bool Valid = 1;
}
message AuthMetadataResponse {
string LoginURL = 1;
string LogoutURL = 2;
string AccountURL = 3;
}
message AvatarListRequest {
repeated uint64 UserIDs = 1;
}
message AvatarItem {
uint64 UserID = 1;
string AvatarURL = 2;
}
message AvatarListResponse {
repeated AvatarItem Avatars = 1;
}