Class: Pasaporte::Controllers::Yadis

Inherits:
Object
  • Object
show all
Defined in:
lib/pasaporte.rb

Overview

Return the yadis autodiscovery XML for the user

Constant Summary collapse

YADIS_TPL =
%{<?xml version="1.0" encoding="UTF-8"?>
  <xrds:XRDS xmlns:xrds="xri://$xrds" xmlns="xri://$xrd*($v*2.0)">
  <XRD>
  <Service>
    <Type>http://openid.net/signon/1.0</Type>
    <URI>%s</URI>
  </Service>
  </XRD>
  </xrds:XRDS>
}

Instance Method Summary collapse

Instance Method Details

#get_with_nickObject



405
406
407
408
409
410
411
# File 'lib/pasaporte.rb', line 405

def get_with_nick
  @headers["Content-Type"] = "application/xrds+xml"
  LOGGER.info "YADIS requested for #{@nickname}"
  @skip_layout = true
  # We only use the server for now
  YADIS_TPL % get_endpoints[0]
end