// protoc --go_out=. --go_opt=paths=source_relative \
//	--go-grpc_out=. --go-grpc_opt=paths=source_relative \
//	auth.proto

syntax = "proto3";
package proto;
option go_package = "github.com/go-gost/plugin/auth/proto";

message AuthenticateRequest {
	string username = 1;
	string password = 2;
	string client = 3;
	string service = 4;
}

message AuthenticateReply {
	bool ok = 1;
	string id = 2;
}

service Authenticator {
	rpc Authenticate(AuthenticateRequest) returns (AuthenticateReply);
}
