Sha256: d681790e8194e3cb1bb47d8eff60127db8c6e2f977eb5e37c0650b212ed2a43c
Contents?: true
Size: 932 Bytes
Versions: 9
Compression:
Stored size: 932 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) # Synapses CAS 0.1.3 - Allow nullable extra attributes if !@extra_attributes.blank? @extra_attributes.each do |key, value| if value != nil serialize_extra_attribute(xml, key, value) end end 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
9 entries across 9 versions & 1 rubygems