Skip to content

Commit

Permalink
added issuer method
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Rozner committed Apr 13, 2012
1 parent 3879546 commit bafc52d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/onelogin/saml/response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bafc52d

Please sign in to comment.