summaryrefslogtreecommitdiff
path: root/magefile.go
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-03-28 10:40:54 -0600
committermo khan <mo@mokhan.ca>2025-03-28 10:40:54 -0600
commit87cd5db48af6d4449cf086245d3bd5da1b7d1e71 (patch)
tree198b5c3712f4624831d026207be9c009a4f2a9b1 /magefile.go
parent56331a6109300736ebf8f1250f04f06c88e95177 (diff)
feat: initial commit for authzd
Diffstat (limited to 'magefile.go')
-rw-r--r--magefile.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/magefile.go b/magefile.go
index eaedbc6..27cab5e 100644
--- a/magefile.go
+++ b/magefile.go
@@ -55,6 +55,14 @@ func Api() error {
return sh.RunWithV(env, "ruby", "./bin/api")
}
+// Run the Authzd Service
+func Authzd() error {
+ env := map[string]string{
+ "BIND_ADDR": ":50051",
+ }
+ return sh.RunWithV(env, "go", "run", "./cmd/authzd/main.go")
+}
+
// Generate gRPC from protocal buffers
func Protos() error {
outDir := "lib/authx/rpc"
@@ -75,7 +83,7 @@ func Protos() error {
// Run All the servers
func Servers(ctx context.Context) {
- mg.CtxDeps(ctx, Idp, UI, Api, Gateway)
+ mg.CtxDeps(ctx, Idp, UI, Api, Authzd, Gateway)
}
// Run the end to end tests