Unverified Commit 65a8faa9 authored by Hossein Ahmadian-Yazdi's avatar Hossein Ahmadian-Yazdi Committed by GitHub
Browse files

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


Co-authored-by: default avatarMattermod <mattermod@users.noreply.github.com>
Co-authored-by: default avatarMattermod <mattermod@users.noreply.github.com>
parent dd2f8185
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment