@@ -36,15 +36,15 @@ def response_id
3636 #
3737 def create ( settings , request_id = nil , logout_message = nil , params = { } , logout_status_code = nil )
3838 params = create_params ( settings , request_id , logout_message , params , logout_status_code )
39- params_prefix = ( settings . idp_slo_target_url =~ /\? / ) ? '&' : '?'
40- url = settings . idp_slo_response_service_url || settings . idp_slo_target_url
39+ params_prefix = ( settings . idp_slo_service_url =~ /\? / ) ? '&' : '?'
40+ url = settings . idp_slo_response_service_url || settings . idp_slo_service_url
4141 saml_response = CGI . escape ( params . delete ( "SAMLResponse" ) )
4242 response_params = "#{ params_prefix } SAMLResponse=#{ saml_response } "
4343 params . each_pair do |key , value |
4444 response_params << "&#{ key . to_s } =#{ CGI . escape ( value . to_s ) } "
4545 end
4646
47- raise SettingError . new "Invalid settings, idp_slo_target_url is not set!" if url . nil? or url . empty?
47+ raise SettingError . new "Invalid settings, idp_slo_service_url is not set!" if url . nil? or url . empty?
4848 @logout_url = url + response_params
4949 end
5050
@@ -117,7 +117,8 @@ def create_xml_document(settings, request_id = nil, logout_message = nil, status
117117 response_doc = XMLSecurity ::Document . new
118118 response_doc . uuid = uuid
119119
120- destination = settings . idp_slo_response_service_url || settings . idp_slo_target_url
120+ destination = settings . idp_slo_response_service_url || settings . idp_slo_service_url
121+
121122
122123 root = response_doc . add_element 'samlp:LogoutResponse' , { 'xmlns:samlp' => 'urn:oasis:names:tc:SAML:2.0:protocol' , "xmlns:saml" => "urn:oasis:names:tc:SAML:2.0:assertion" }
123124 root . attributes [ 'ID' ] = uuid
0 commit comments