class IdpSettingsAdapter def self.settings(idp_entity_id) if idp_entity_id == "http://localhost:8020/saml/metadata" { assertion_consumer_service_url: "acs_url", assertion_consumer_service_binding: "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST", name_identifier_format: "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress", issuer: "sp_issuer", idp_entity_id: "http://localhost:8020/saml/metadata", authn_context: "", idp_slo_target_url: "http://www.example.com/slo", idp_sso_target_url: "http://www.example.com/sso", idp_cert: "idp_cert" } else {} end end end