fix: Add verbose debugging output

This commit is contained in:
2024-03-09 17:56:47 +11:00
parent 905f2aed8e
commit b4d866bbe8
2 changed files with 4 additions and 2 deletions

View File

@ -14,6 +14,8 @@ import (
_ "github.com/breml/rootcerts"
"github.com/gorilla/mux"
"github.com/davecgh/go-spew/spew"
"github.com/AzureAD/microsoft-authentication-library-for-go/apps/confidential"
)
@ -43,7 +45,7 @@ func handler(w http.ResponseWriter, r *http.Request) {
}
}
// accessToken := result.AccessToken
w.Write([]byte(fmt.Sprintf("Hello, %s\n", result.AccessToken)))
w.Write([]byte(fmt.Sprintf("Hello, %s\n", spew.Sdump(result.AccessToken))))
}
func healthHandler(w http.ResponseWriter, r *http.Request) {