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)
This commit is contained in:
Jesús Espino
2020-06-16 23:37:06 +02:00
committed by GitHub
parent c58edbf622
commit 61ff43aef8
+3
View File
@@ -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))