20250106092921_saml_ssl_verify_help.rb 659 B

123456789101112131415161718192021222324
  1. # Copyright (C) 2012-2025 Zammad Foundation, https://zammad-foundation.org/
  2. class SamlSSLVerifyHelp < ActiveRecord::Migration[7.2]
  3. def change
  4. # return if it's a new setup
  5. return if !Setting.exists?(name: 'system_init_done')
  6. setting = Setting.find_by(name: 'auth_saml_credentials')
  7. return if !setting
  8. update_needed = false
  9. setting.options[:form].each do |o|
  10. next if !o[:name].eql?('ssl_verify')
  11. o[:help] = 'Verification of the TLS connection to the IDP SSO target URL. Only relevant during setting up SAML authentication.'
  12. update_needed = true
  13. end
  14. return if !update_needed
  15. setting.save!
  16. end
  17. end