Sha256: a73a8bb7d4004a87a803caf0b25f033c81089854eb71b4047aef332b0a204ab1

Contents?: true

Size: 1.09 KB

Versions: 7

Compression:

Stored size: 1.09 KB

Contents


<% if session[:username].nil? %>

<div id="login-form">
  <form method="get" action="<%= url_for :controller => 'login', :action => 'submit' %>">
Type a username: 
  <input type="text" name="username" />
  <input type="submit" value="Log In" />
  </form>

</div>

<% end %>

<p>
Welcome to the Ruby OpenID server example.  This code is a starting point for developers wishing to implement an OpenID server on the <a href="http://rubyonrails.org/">Rails</a> platform.
</p> 

<h2>To use the example</h2>
<p>
  <ol>
    <li>Enter a username in the form above.  You will be "Logged In" to the server, at which point you may authenticate using an OpenID consumer. Your OpenID URL will be displayed after you log in.<p>The server will automatically create an identity page for you at http://localhost:3000/user/<i>name</i></p></li>
    <li>Run the example OpenID consumer: <blockquote>ruby examples/consumer.rb</blockquote></li>
    <li>In another browser window visit <a href="http://localhost:2000/">http://localhost:2000/</a>, and type your OpenID URL to verfiy your identity with this server.</li>
  </ol>

</p>




Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ruby-openid-1.0.1 examples/rails_server/app/views/login/index.rhtml
ruby-openid-1.1.2 examples/rails_server/app/views/login/index.rhtml
ruby-openid-1.0.2 examples/rails_server/app/views/login/index.rhtml
ruby-openid-1.1.1 examples/rails_server/app/views/login/index.rhtml
ruby-openid-1.0 examples/rails_server/app/views/login/index.rhtml
ruby-openid-1.1.4 examples/rails_server/app/views/login/index.rhtml
ruby-openid-1.1.3 examples/rails_server/app/views/login/index.rhtml