MultiAuth

This engine provides basic signup/login functionality for your Rails applications.

Install

$ sudo gem install okkez-multi_auth

or

$ sudo gem install multi_auth

Setup

RAILS_ROOT/config/environment.rb:

config.gem "multi_auth"

or

config.gem "okkez-multi_auth", :lib => "multi_auth"

$ ruby script/generate open_id_authentication_tables create_open_id_authentication_tables

Create migrations for open_id_authentication.

$ ruby script/generate multi_auth_migration create_multi_auth_tables

Create migrations for multi_auth.

$ rake db:migrate

You must have a model ‘User’. User model has any columns which you want to add.

Ex.

class User < ActiveRecord::Base
  multi_auth
end

You can use MultiAuthHelper, see below.

Ex.

module ApplicationHelper
  include MultiAuthHelper
end

You can use default style sheet and icons.

$ ruby script/generate multi_auth_public_assets

Customize

If you want to use custom views, you can create RAILS_ROOT/app/view/activation_mailer,auth,credentials,signup/*.

TODO

see TODO.ja