Add tokeninfo endpoint

This commit is contained in:
Bolke de Bruin 2020-08-19 12:12:52 +02:00
parent 188f077da1
commit 22d796c5cf
3 changed files with 113 additions and 0 deletions

View file

@ -130,6 +130,7 @@ func main() {
http.Handle("/remoteDesktopGateway/", common.EnrichContext(http.HandlerFunc(gw.HandleGatewayProtocol)))
http.Handle("/connect", common.EnrichContext(api.Authenticated(http.HandlerFunc(api.HandleDownload))))
http.Handle("/metrics", promhttp.Handler())
http.HandleFunc("/tokeninfo", api.TokenInfo)
http.HandleFunc("/callback", api.HandleCallback)
err = server.ListenAndServeTLS("", "")