From bafc52dd232f0384034fb9abc5d00882fd05a725 Mon Sep 17 00:00:00 2001 From: Joe Rozner Date: Fri, 13 Apr 2012 10:17:21 -0700 Subject: [PATCH] added issuer method --- lib/onelogin/saml/response.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/onelogin/saml/response.rb b/lib/onelogin/saml/response.rb index 61323a33e..2f364af43 100644 --- a/lib/onelogin/saml/response.rb +++ b/lib/onelogin/saml/response.rb @@ -72,6 +72,13 @@ def conditions end end + def issuer + @issuer ||= begin + node = REXML::XPath.first(document, "/p:Response/a:Issuer", { "p" => PROTOCOL, "a" => ASSERTION }) + node.nil? ? nil : node.text + end + end + private def validation_error(message)