From 3fd91895698d68c31d40fe0f0e24bf8e4f6cc2ac Mon Sep 17 00:00:00 2001 From: Tristan Cartledge Date: Mon, 12 Aug 2024 09:34:41 +0100 Subject: [PATCH] feat: add alternate token url for testing changing the token url --- cmd/server/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/server/main.go b/cmd/server/main.go index 97b9298..5cb642c 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -55,6 +55,8 @@ func main() { r.HandleFunc("/eventstreams/differentdataschemas", eventstreams.HandleEventStreamDifferentDataSchemas).Methods(http.MethodPost) r.HandleFunc("/clientcredentials/token", clientcredentials.HandleTokenRequest).Methods(http.MethodPost) r.HandleFunc("/clientcredentials/authenticatedrequest", clientcredentials.HandleAuthenticatedRequest).Methods(http.MethodPost) + r.HandleFunc("/clientcredentials/alt/token", clientcredentials.HandleTokenRequest).Methods(http.MethodPost) + r.HandleFunc("/clientcredentials/alt/authenticatedrequest", clientcredentials.HandleAuthenticatedRequest).Methods(http.MethodPost) r.HandleFunc("/reflect", reflect.HandleReflect).Methods(http.MethodPost) handler := middleware.Fault(r)