From 61ff43aef882c51cdd0a0ce161da2217adf6e533 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Tue, 16 Jun 2020 23:37:06 +0200 Subject: [PATCH] Moving back saml to the fakeapp approach (#14833) * Moving back saml to the fakeapp approach * Configure sp during initialization * Configure sp during initialization (with no fake app) --- app/enterprise.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/enterprise.go b/app/enterprise.go index 131d0dc21d..20dc024520 100644 --- a/app/enterprise.go +++ b/app/enterprise.go @@ -165,6 +165,9 @@ func (a *App) initEnterprise() { mlog.Debug("Loading original SAML library") a.srv.Saml = samlInterface(a) } + if err := a.srv.Saml.ConfigureSP(); err != nil { + mlog.Error("An error occurred while configuring SAML Service Provider", mlog.Err(err)) + } a.AddConfigListener(func(_, cfg *model.Config) { if err := a.srv.Saml.ConfigureSP(); err != nil { mlog.Error("An error occurred while configuring SAML Service Provider", mlog.Err(err))