2 require 'rack/response'
6 class Rots::IdentityPageApp
8 def initialize(config, server_options)
9 @server_options = server_options
14 @request = Rack::Request.new(env)
15 Rack::Response.new do |response|
16 response.write <<-HERE
19 <link rel="openid2.provider" href="#{op_endpoint}" />
20 <link rel="openid.server" href="#{op_endpoint}" />
23 <h1>This is #{@config['identity']} identity page</h1>
31 "http://%s:%d/server/%s" % [@request.host,
33 (@request.params['openid.success'] ? '?openid.success=true' : '')]