Class: Saml::Bindings::SOAP
- Inherits:
-
Object
- Object
- Saml::Bindings::SOAP
- Defined in:
- lib/saml/bindings/soap.rb
Class Method Summary collapse
- .create_response_xml(response) ⇒ Object
- .post_message(message, response_type) ⇒ Object
- .receive_message(request, type) ⇒ Object
Class Method Details
.create_response_xml(response) ⇒ Object
5 6 7 |
# File 'lib/saml/bindings/soap.rb', line 5 def create_response_xml(response) Saml::Util.sign_xml(response, :soap) end |
.post_message(message, response_type) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/saml/bindings/soap.rb', line 9 def (, response_type) = Saml::Util.sign_xml(, :soap) http_response = Saml::Util.post(.destination, ) if http_response.code == 200 response = Saml.(http_response.body, response_type) Saml::Util.verify_xml(response, http_response.body) else nil end end |
.receive_message(request, type) ⇒ Object
22 23 24 25 26 27 |
# File 'lib/saml/bindings/soap.rb', line 22 def (request, type) raw_xml = request.body.dup.read = Saml.(raw_xml, type) Saml::Util.verify_xml(, raw_xml) end |