Sha256: 7732ec42f5609a1f1b368d05ca776a22e3a46a783aabdb28551b681af2dd8735
Contents?: true
Size: 626 Bytes
Versions: 9
Compression:
Stored size: 626 Bytes
Contents
require 'saml2/message' require 'saml2/status' module SAML2 class StatusResponse < Message attr_accessor :in_response_to, :status def initialize super @status = Status.new end def from_xml(node) super @status = nil remove_instance_variable(:@status) end def status @status ||= Status.from_xml(xml.at_xpath('samlp:Status', Namespaces::ALL)) end protected def build(status_response) super(status_response) status_response.parent['InResponseTo'] = in_response_to if in_response_to status.build(status_response) end end end
Version data entries
9 entries across 9 versions & 1 rubygems