lib/omniauth/strategies/cas/saml_ticket_validator.rb
# turns an `<cas:authenticationSuccess>` node into a Hash;
# returns nil if given nil
turns an `` node into a Hash;
returns nil if given nil
turns an ` ` node into a Hash ; returns nil if given nil
def parse_user_info(node)
          return nil if node.nil?
          h = {}
          if !node.blank?
            h["user"] = node.css("AttributeStatement").css("NameIdentifier")[0].children[0].to_s
            node.css("Attribute").each do |attr|
              h[attr.attributes["AttributeName"].value] = attr.children[0].children[0].to_s
            end
          end
          h
        end
def parse_user_info ( node ) return nil if node . nil? h = { } if ! node . blank? h [ "user" ] = node . css ( "AttributeStatement" ) . css ( "NameIdentifier" ) [ 0 ] . children [ 0 ] . to_s node . css ( "Attribute" ) . each do | attr | h [ attr . attributes [ "AttributeName" ] . value ] = attr . children [ 0 ] . children [ 0 ] . to_s end end h end
turns an `<cas:authenticationSuccess>` node into a Hash;
returns nil if given nil
turns an ` <cas : authenticationSuccess > ` node into a Hash ; returns nil if given nil
node
<not_specific>