package web import ( _ "embed" "net/http" "text/template" ) //go:embed templates/openid-configuration.json var oidcConfig string var ( tmpl = template.Must(template.New("").Parse(string(oidcConfig))) ) func (h *HttpContext) OpenIdConfiguration(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "application/json") tmpl.Execute(w, struct{ Issuer string }{Issuer: h.cfg.Issuer}) }