mirror of
https://github.com/bolkedebruin/rdpgw.git
synced 2026-03-27 14:36:36 +00:00
Add server implementation of basic auth
This commit is contained in:
19
proto/auth.proto
Normal file
19
proto/auth.proto
Normal 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) {}
|
||||
}
|
||||
Reference in New Issue
Block a user