summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2022-04-21 10:21:35 -0600
committermo khan <mo@mokhan.ca>2022-04-21 10:21:35 -0600
commitc84a523b1e29fa70c18a6a8e889214ef854c6951 (patch)
treee29d324160fcc38f73b30c909c5146b11dd12767 /cmd
parented7a6333ed475b84f64dcf22e7318297867348d9 (diff)
create a minimal oidc idp
Diffstat (limited to 'cmd')
-rw-r--r--cmd/server/main.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/cmd/server/main.go b/cmd/server/main.go
new file mode 100644
index 0000000..7113f41
--- /dev/null
+++ b/cmd/server/main.go
@@ -0,0 +1,20 @@
+package main
+
+import (
+ "log"
+ "net/http"
+
+ "mokhan.ca/xlgmokha/oauth/pkg/web"
+)
+
+func main() {
+ log.Println("Starting server, listening on port 8282.")
+ server := &http.Server{
+ Addr: ":8282",
+ Handler: web.NewHandler(),
+ ReadTimeout: 0,
+ WriteTimeout: 0,
+ IdleTimeout: 0,
+ }
+ log.Fatal(server.ListenAndServe())
+}