|
|
|
@ -25,10 +25,11 @@ import (
|
|
|
|
|
"io/fs"
|
|
|
|
|
"net/http"
|
|
|
|
|
|
|
|
|
|
"code.cacert.org/cacert/oidc-idp/internal/services"
|
|
|
|
|
"code.cacert.org/cacert/oidc-idp/ui"
|
|
|
|
|
"github.com/nicksnyder/go-i18n/v2/i18n"
|
|
|
|
|
log "github.com/sirupsen/logrus"
|
|
|
|
|
|
|
|
|
|
"code.cacert.org/cacert/oidc-idp/internal/services"
|
|
|
|
|
"code.cacert.org/cacert/oidc-idp/ui"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type errorKey int
|
|
|
|
@ -193,8 +194,10 @@ func (h *ErrorHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|
|
|
|
msgMarkdown := h.messageCatalog.LookupMarkdownMessage
|
|
|
|
|
|
|
|
|
|
err := h.template.Lookup("base").Execute(rendered, map[string]interface{}{
|
|
|
|
|
"Title": msg("AuthServerErrorTitle", nil, localizer),
|
|
|
|
|
"Explanation": template.HTML(msgMarkdown("AuthServerErrorExplanation", nil, localizer)),
|
|
|
|
|
"Title": msg("AuthServerErrorTitle", nil, localizer),
|
|
|
|
|
"Explanation": template.HTML( //nolint:gosec
|
|
|
|
|
msgMarkdown("AuthServerErrorExplanation", nil, localizer),
|
|
|
|
|
),
|
|
|
|
|
"ErrorMessage": errorDescription,
|
|
|
|
|
})
|
|
|
|
|
if err != nil {
|
|
|
|
|