mirror of
https://github.com/bolkedebruin/rdpgw.git
synced 2025-08-18 22:43:48 +02:00
Add server implementation of basic auth
This commit is contained in:
parent
390f6acbcd
commit
fb58cb299e
8 changed files with 157 additions and 53 deletions
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) {}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue