Add server implementation of basic auth

This commit is contained in:
Bolke de Bruin 2022-08-24 13:47:26 +02:00
parent 390f6acbcd
commit fb58cb299e
8 changed files with 157 additions and 53 deletions

19
proto/auth.proto Normal file
View file

@ -0,0 +1,19 @@
syntax = "proto3";
package auth;
option go_package = "./auth";
message UserPass {
string username = 1;
string password = 2;
}
message AuthResponse {
bool authenticated = 1;
string error = 2;
}
service Authenticate {
rpc Authenticate (UserPass) returns (AuthResponse) {}
}