mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 19:44:21 +00:00
710652ef24
* feat: project role remove * feat: search queries * feat: search queries * feat: cascade remove/change project role * fix: comment in project grant * fix: remove projecr grant * fix: only search usergrants of my org * fix: delete usergrants * fix: delete usergrants * fix: check if role exists on project grant * feat: bulk add project role * fix: tests * fix: update user grants on project update * fix: return roles * feat: add resourceowner name on project grants * fix: migration number * fix: tests * fix: generate protos * fix: some unnecessary code |
||
---|---|---|
.. | ||
authoption | ||
templates | ||
generate.go | ||
main.go | ||
README.md | ||
templates.go |
protoc-gen-authoption
Proto options to annotate auth methods in protos
Generate protos/templates
protos: go generate authoption/generate.go
templates/install: go generate generate.go
Usage
// proto file
import "authoption/options.proto";
service MyService {
rpc Hello(Hello) returns (google.protobuf.Empty) {
option (google.api.http) = {
get: "/hello"
};
option (caos.zitadel.utils.v1.auth_option) = {
zitadel_permission: "hello.read"
zitadel_check_param: "id"
};
}
message Hello {
string id = 1;
}
}
Caos Auth Option is used for granting groups On each zitadel role is specified which auth methods are allowed to call
Get protoc-get-authoption: go get github.com/caos/zitadel/internal/protoc/protoc-gen-authoption
Protc-Flag: --authoption_out=.