1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
syntax = "proto3"; package authx; service Ability { rpc Allowed (AllowRequest) returns (AllowReply) {} } message AllowRequest { string subject = 1; string permission = 2; string resource = 3; } message AllowReply { bool result = 1; }