Sha256: 9297467fcea93f0e5cbcaa20a1d3529d8a7e310ea7fddff33f1ca0f924ff8eef
Contents?: true
Size: 778 Bytes
Versions: 14
Compression:
Stored size: 778 Bytes
Contents
# encoding: UTF-8 if @success xml.tag!("cas:serviceResponse", 'xmlns:cas' => "http://www.yale.edu/tp/cas") do xml.tag!("cas:authenticationSuccess") do xml.tag!("cas:user", @username.to_s) @extra_attributes.each do |key, value| serialize_extra_attribute(xml, key, value) end if @pgtiou xml.tag!("cas:proxyGrantingTicket", @pgtiou.to_s) end if @proxies && !@proxies.empty? xml.tag!("cas:proxies") do @proxies.each do |proxy_url| xml.tag!("cas:proxy", proxy_url.to_s) end end end end end else xml.tag!("cas:serviceResponse", 'xmlns:cas' => "http://www.yale.edu/tp/cas") do xml.tag!("cas:authenticationFailure", {:code => @error.code}, @error.to_s) end end
Version data entries
14 entries across 14 versions & 4 rubygems