Skip to content
Snippets Groups Projects
Commit 4c0ff95a authored by Vinoth Kannan's avatar Vinoth Kannan
Browse files

FEATURE: Add support for signle logout service

parent 86f01a9f
No related branches found
No related tags found
No related merge requests found
......@@ -51,12 +51,14 @@ class SamlAuthenticator < ::Auth::OAuth2Authenticator
name: name,
issuer: Discourse.base_url,
idp_sso_target_url: setting(:target_url),
idp_slo_target_url: setting(:slo_target_url),
idp_cert_fingerprint: GlobalSetting.try(:saml_cert_fingerprint),
idp_cert_fingerprint_algorithm: GlobalSetting.try(:saml_cert_fingerprint_algorithm),
idp_cert: setting(:cert),
request_attributes: request_attributes,
attribute_statements: attribute_statements,
assertion_consumer_service_url: Discourse.base_url + "/auth/#{name}/callback",
single_logout_service_url: Discourse.base_url + "/auth/#{name}/slo",
name_identifier_format: GlobalSetting.try(:saml_name_identifier_format),
custom_url: (GlobalSetting.try(:saml_request_method) == 'post') ? "/discourse_saml" : nil,
certificate: GlobalSetting.try(:saml_sp_certificate),
......
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