mirror of
https://github.com/garethgeorge/backrest.git
synced 2025-12-15 18:15:37 +00:00
25 lines
513 B
Protocol Buffer
25 lines
513 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package v1;
|
|
|
|
option go_package = "github.com/garethgeorge/backrest/gen/go/v1";
|
|
|
|
import "v1/config.proto";
|
|
import "types/value.proto";
|
|
import "google/protobuf/empty.proto";
|
|
import "google/api/annotations.proto";
|
|
|
|
service Authentication {
|
|
rpc Login(LoginRequest) returns (LoginResponse) {}
|
|
rpc HashPassword(types.StringValue) returns (types.StringValue) {}
|
|
}
|
|
|
|
message LoginRequest {
|
|
string username = 1;
|
|
string password = 2;
|
|
}
|
|
|
|
message LoginResponse {
|
|
string token = 1; // JWT token
|
|
}
|