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

Version Path
ror-rubycas-server-1.0.c lib/casserver/views/proxy_validate.builder
ror-rubycas-server-1.0.b lib/casserver/views/proxy_validate.builder
ror-rubycas-server-1.0.a lib/casserver/views/proxy_validate.builder
rubycas-server-1.1.2 lib/casserver/views/proxy_validate.builder
rubycas-server-1.1.1 lib/casserver/views/proxy_validate.builder
synapses-cas-0.1.2 lib/casserver/views/proxy_validate.builder
synapses-cas-0.1.1 lib/casserver/views/proxy_validate.builder
synapses-cas-0.1.0 lib/casserver/views/proxy_validate.builder
bmedia-casserver-1.1.3 lib/casserver/views/proxy_validate.builder
bmedia-casserver-1.1.2 lib/casserver/views/proxy_validate.builder
bmedia-casserver-1.1.1 lib/casserver/views/proxy_validate.builder
rubycas-server-1.1.0 lib/casserver/views/proxy_validate.builder
rubycas-server-1.0.1 lib/casserver/views/proxy_validate.builder
rubycas-server-1.0 lib/casserver/views/proxy_validate.builder