cross server client
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user