cross server client

This commit is contained in:
Priec
2026-09-03 10:42:36 +02:00
parent 0d20546787
commit 0db358c075
6 changed files with 109 additions and 5 deletions

View File

@@ -2,9 +2,10 @@
syntax = "proto3";
package komp_ac.auth;
import "common.proto";
service AuthService {
// Identifies the logical database before the client selects a saved token.
// This endpoint is deliberately unauthenticated.
rpc GetServerIdentity(GetServerIdentityRequest) returns (ServerIdentity);
rpc Register(RegisterRequest) returns (AuthResponse);
rpc Login(LoginRequest) returns (LoginResponse);
// Changes the authenticated user's password after verifying the current one.
@@ -45,6 +46,12 @@ service AuthService {
rpc ListUsers(ListUsersRequest) returns (ListUsersResponse);
}
message ServerIdentity {
string instance_id = 1; // Stable UUID stored inside this database
}
message GetServerIdentityRequest {}
message RegisterRequest {
string username = 1;
string email = 2;