pomerium/internal/grpc/authorize/authorize.proto
Bobby DeSimone dccc7cd2ff
cache : add cache service (#457)
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
2020-01-20 18:25:34 -08:00

25 lines
502 B
Protocol Buffer

syntax = "proto3";
package authorize;
service Authorizer {
rpc Authorize(Identity) returns (AuthorizeReply) {}
rpc IsAdmin(Identity) returns (IsAdminReply) {}
}
message Identity {
// request context
string route = 1;
// user context
string user = 2;
string email = 3;
repeated string groups = 4;
// user context
string impersonate_email = 5;
repeated string impersonate_groups = 6;
}
message AuthorizeReply { bool is_valid = 1; }
message IsAdminReply { bool is_admin = 1; }