#encoding: utf-8 def default_response_opts { :uuid => "_28024690-000e-0130-b6d2-38f6b112be8b", :issue_instant => Time.now.strftime('%Y-%m-%dT%H:%M:%SZ'), :settings => settings } end def valid_response(opts = {}) opts = default_response_opts.merge!(opts) " #{opts[:settings].idp_entity_id} " end def unsuccessful_response(opts = {}) opts = default_response_opts.merge!(opts) " #{opts[:settings].idp_entity_id} " end def invalid_xml_response " " end def settings @settings ||= OneLogin::RubySaml::Settings.new( { :assertion_consumer_service_url => "http://app.muda.no/sso/consume", :single_logout_service_url => "http://app.muda.no/sso/consume_logout", :sp_entity_id => "http://app.muda.no", :sp_name_qualifier => "http://sso.muda.no", :idp_sso_target_url => "http://sso.muda.no/sso", :idp_slo_target_url => "http://sso.muda.no/slo", :idp_cert_fingerprint => "00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00", :name_identifier_format => "urn:oasis:names:tc:SAML:2.0:nameid-format:transient", } ) end