summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/authzd/main.go7
-rw-r--r--magefile.go10
2 files changed, 16 insertions, 1 deletions
diff --git a/cmd/authzd/main.go b/cmd/authzd/main.go
new file mode 100644
index 00000000..f7b60bde
--- /dev/null
+++ b/cmd/authzd/main.go
@@ -0,0 +1,7 @@
+package main
+
+import "fmt"
+
+func main() {
+ fmt.Println("Hello, world!")
+}
diff --git a/magefile.go b/magefile.go
index eaedbc6a..27cab5e3 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