Skip to content
Snippets Groups Projects
Commit b0c74c0f authored by Guo Xiang Tan's avatar Guo Xiang Tan
Browse files

Fix undefined method error.

parent a67bab16
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ class SamlAuthenticator < ::Auth::OAuth2Authenticator
omniauth.provider :saml,
:name => 'saml',
:issuer => Discourse.base_url,
:idp_sso_target_url => GlobalSetting.saml_target_url,
:idp_sso_target_url => GlobalSetting.try(:saml_target_url),
:idp_cert_fingerprint => GlobalSetting.try(:saml_cert_fingerprint),
:idp_cert => GlobalSetting.try(:saml_cert),
:attribute_statements => { :nickname => ['screenName'] },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment