Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Adding a list thing needed on the mock identity page app in order to …

…make it work as expected
  • Loading branch information...
commit e92ce82dba58423eaa610beb8ca1a3a4b76c3983 1 parent 4df24c8
Roman Gonzalez authored

Showing 1 changed file with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. +4 2 lib/ruby_openid_test_server/mock_identity_page.rb
6 lib/ruby_openid_test_server/mock_identity_page.rb
@@ -9,12 +9,14 @@ def initialize(config)
9 9 end
10 10
11 11 def call(env)
  12 + request = Rack::Request.new(env)
  13 + flag = request.params['openid.success'] == 'true' ? '?openid.success=true' : ''
12 14 Rack::Response.new do |response|
13 15 response.write <<-HERE
14 16 <html>
15 17 <head>
16   - <link rel="openid.server" href="http://localhost:1123/" />
17   - <link rel="openid2.provider" href="http://localhost:1123" />
  18 + <link rel="openid.server" href="http://localhost:1123/#{flag}" />
  19 + <link rel="openid2.provider" href="http://localhost:1123/#{flag}" />
18 20 </head>
19 21 <body>
20 22 <h1>This is #{@config['identity']} identity page</h1>

0 comments on commit e92ce82

Please sign in to comment.
Something went wrong with that request. Please try again.