Sha256: 04dc55863c8e18e65de348d77bfc6726989fa23f421abbc61ad5e717cb8d2081

Contents?: true

Size: 621 Bytes

Versions: 2

Compression:

Stored size: 621 Bytes

Contents

#encoding: utf-8

require "rexml/document"

module Onelogin
  module Saml
    class Logoutresponse
      include Codeing

      def initialize(response)
        begin
          @response = decode(response)
          document
        rescue
          @response = inflate(decode(response))
        end
      end

      def issuer
        document.elements["/samlp:LogoutResponse/saml:Issuer"].text
      end

      def in_response_to
        document.elements["/samlp:LogoutResponse"].attributes["InResponseTo"]
      end

    protected
      def document
        REXML::Document.new(@response)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruby-saml-bekk-0.3.2 lib/onelogin/saml/logoutresponse.rb
ruby-saml-bekk-0.3.1 lib/onelogin/saml/logoutresponse.rb