summaryrefslogtreecommitdiff
path: root/pkg/sts/sts.go
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-06-18 14:42:36 -0600
committermo khan <mo@mokhan.ca>2025-06-18 14:42:36 -0600
commit011fe0f9af046235cc25e87aaf25398db125a79f (patch)
tree698c1570ccc8cd26cdf580858d584bb11f44d284 /pkg/sts/sts.go
parent7db38ae743b025546202ea32651ad40a0c3c7d77 (diff)
Create a token creation endpointsts
Diffstat (limited to 'pkg/sts/sts.go')
-rw-r--r--pkg/sts/sts.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkg/sts/sts.go b/pkg/sts/sts.go
index ae75e8a..1030280 100644
--- a/pkg/sts/sts.go
+++ b/pkg/sts/sts.go
@@ -9,8 +9,13 @@ import (
)
func New(ctx context.Context) http.Handler {
+ mux := http.NewServeMux()
+ mux.HandleFunc("POST /oauth/token", func(w http.ResponseWriter, r *http.Request) {
+ w.WriteHeader(http.StatusCreated)
+ })
+
return x.Middleware[http.Handler](
- http.NewServeMux(),
+ mux,
log.HTTP(log.From(ctx)),
)
}