1 Star 0 Fork 0

xingyp / cn-infra

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
accesssecurity.proto 591 Bytes
一键复制 编辑 原始数据 按行查看 历史
Vladimir Lavor 提交于 2018-09-27 12:14 . small improvements
syntax = "proto3";
// Package access_security provides basic definition of user and permission group
package access_security;
message User {
string name = 1;
string password_hash = 2;
repeated string permissions = 3; // Permission name, user is allowed for more permission groups
}
message PermissionGroup {
string name = 1;
message Permissions {
string url = 1; // URL enabled for the permission
repeated string allowed_methods = 2; // Methods enabled for the URL
}
repeated Permissions permissions = 2;
}
1
https://gitee.com/xingyp/cn-infra.git
git@gitee.com:xingyp/cn-infra.git
xingyp
cn-infra
cn-infra
v2.2.0

搜索帮助