zitadel/internal/protoc/protoc-gen-authoption
Fabi 710652ef24
feat: delete (#243)
* 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
2020-06-19 15:32:03 +02:00
..
authoption feat: add protoc pkg 2020-03-23 11:53:12 +01:00
templates fix: start server and gateway 2020-03-25 10:54:45 +01:00
generate.go feat: add protoc pkg 2020-03-23 11:53:12 +01:00
main.go feat: add protoc pkg 2020-03-23 11:53:12 +01:00
README.md feat: add protoc pkg 2020-03-23 11:53:12 +01:00
templates.go feat: delete (#243) 2020-06-19 15:32:03 +02:00

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=.