blob: cc4f79faf166f342ac5aab624539e5edbf560c8e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
.PHONY: help
help:
@echo "Available targets:"
@echo " server - Run the gRPC server"
@echo " test - Run the tests"
.PHONY: clean
clean:
@cargo clean
.PHONY: client
client:
@cargo run --bin authzd-client
.PHONY: server
server:
@cargo run --bin authzd-server
.PHONY: test
test:
@cargo test
.PHONY: grpcurl
grpcurl:
@grpcurl -plaintext -import-path ./proto -proto helloworld.proto -d '{"name": "Tonic"}' '[::1]:50051' helloworld.Greeter/SayHello
@grpcurl -plaintext -import-path ./proto -proto ability.proto -d '{"subject": "gid://example/User/1", "permission": "gid://example/Permission/1", "resource": "gid://example/Project/1"}' '[::1]:50051' authz.rpc.Ability/Allowed
|