Sha256: 8f2f4f5ba6b5852db73cedc5f143405c8690ed857bdeaa87a117b9b59d4ef220

Contents?: true

Size: 596 Bytes

Versions: 4

Compression:

Stored size: 596 Bytes

Contents

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|
        xml.tag!(key) do
          serialize_extra_attribute(xml, value)
        end
      end
      if @pgtiou
        xml.tag!("cas:proxyGrantingTicket", @pgtiou.to_s)
      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

4 entries across 4 versions & 1 rubygems

Version Path
uchouhan-rubycas-server-1.3.a lib/casserver/views/service_validate.builder
uchouhan-rubycas-server-1.2.a lib/casserver/views/service_validate.builder
uchouhan-rubycas-server-1.1.a lib/casserver/views/service_validate.builder
uchouhan-rubycas-server-1.0.a lib/casserver/views/service_validate.builder