Use old saml library if new one is enabled (#15371)

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Hossein Ahmadian-Yazdi
2020-09-02 10:28:43 -04:00
коммит произвёл GitHub
родитель 176f509de8
Коммит 8a101357bc

Просмотреть файл

@@ -167,6 +167,9 @@ func (a *App) initEnterprise() {
if *a.Config().ExperimentalSettings.UseNewSAMLLibrary && samlInterfaceNew != nil {
mlog.Debug("Loading new SAML2 library")
a.srv.Saml = samlInterfaceNew(a)
} else if *a.Config().ExperimentalSettings.UseNewSAMLLibrary && samlInterfaceNew == nil {
mlog.Debug("Ignoring configuration setting to use the Experimental SAML library")
a.srv.Saml = samlInterface(a)
} else {
mlog.Debug("Loading original SAML library")
a.srv.Saml = samlInterface(a)