public
Description: Rails plugin that generates an uber simple, restful openid login controller.
Home | Edit | New

Home

Install

script/plugin install git://github.com/seven1m/simple_restful_openid.git

Usage

script/generate simple_restful_openid

Now, tweak the app/controllers/sessions_controller.rb and app/views/sessions/new.html.erb to your liking.

You may also want to add something like this to your main layout:

<% if session[:url] %>
  <%=h session[:url] %>
  (<%= link_to 'sign out', session_path, :method => :delete %>)
<% else %>
  <%= link_to 'sign in', new_session_path %>
<% end %>

Once you run the code generator, you can delete the plugin like this:

rm -rf vendor/plugins/simple_restful_openid
Last edited by seven1m, Sat May 24 11:33:25 -0700 2008
Home | Edit | New
Versions: