Module: BetterAuth::SSO::SAMLHooks
- Defined in:
- lib/better_auth/sso/saml_hooks.rb
Class Method Summary collapse
Class Method Details
.merge_options(sso_options = {}, saml_options = {}) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/better_auth/sso/saml_hooks.rb', line 8 def ( = {}, = {}) = BetterAuth::Plugins.normalize_hash( || {}) = BetterAuth::Plugins.normalize_hash( || {}) .merge() do |key, old_value, new_value| if key == :saml BetterAuth::Plugins.normalize_hash(old_value || {}).merge(BetterAuth::Plugins.normalize_hash(new_value || {})) else new_value end end end |