Sha256: f0d5b664993da75e3d694ad55dc8cf5f4f60d8aaf9f3cfdcaf4361d379c9b9a1

Contents?: true

Size: 1.07 KB

Versions: 3

Compression:

Stored size: 1.07 KB

Contents

class IdpSettingsAdapter
  def self.settings(idp_entity_id)
    if idp_entity_id == "http://localhost:8020/saml/metadata"
      base = {
        assertion_consumer_service_url: "http://localhost:8020/users/saml/auth",
        assertion_consumer_service_binding: "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST",
        name_identifier_format: "urn:oasis:names:tc:SAML:2.0:nameid-format:transient",
        issuer: "sp_issuer",
        idp_entity_id: "http://localhost:8020/saml/metadata",
        authn_context: "",
        idp_cert_fingerprint: "9E:65:2E:03:06:8D:80:F2:86:C7:6C:77:A1:D9:14:97:0A:4D:F4:4D"
      }
      if Gem::Version.new(OneLogin::RubySaml::VERSION) >= Gem::Version.new("1.12.0")
        base.merge!(
          idp_slo_service_url: "http://localhost:8010/saml/logout",
          idp_sso_service_url: "http://localhost:8010/saml/auth",
        )
      else
        base.merge!(
          idp_slo_target_url: "http://localhost:8010/saml/logout",
          idp_sso_target_url: "http://localhost:8010/saml/auth",
        )
      end
      base
    else
      {}
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
devise_saml_authenticatable-1.9.0 spec/support/idp_settings_adapter.rb.erb
devise_saml_authenticatable-1.8.0 spec/support/idp_settings_adapter.rb.erb
devise_saml_authenticatable-1.7.0 spec/support/idp_settings_adapter.rb.erb