Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Installation

The easiest way to install OmniAuth is to modify your application’s Gemfile. Open the file and look for the commented out #gem 'bcrypt-ruby', '~> 3.0.0' line. Uncomment that (OmniAuth needs it for local authentication), and add gem 'omniauth-identity' below it:

    # To use ActiveModel has_secure_password
gem 'bcrypt-ruby', '~> 3.0.0'
gem 'omniauth-identity'

Then run bundle install from the command line. You’ll see something like:

Fetching source index for http://rubygems.org/
Using rake (0.9.2.2) 
Using multi_json (1.0.4) 
Using activesupport (3.1.3) 
Using builder (3.0.0) 
...
Installing bcrypt-ruby (3.0.1) with native extensions 
Using bundler (1.0.21) 
Using coffee-script-source (1.1.3) 
...
Using coffee-rails (3.1.1) 
Installing hashie (1.2.0) 
Using jquery-rails (1.0.19) 
Installing omniauth (1.0.2) 
Installing omniauth-identity (1.0.0)  
Using rails (3.1.3) 
Using sass (3.1.11) 
...
Using validates_existence (0.7.1) 
Your bundle is complete! Use `bundle show [gemname]` to see where a 
bundled gem is installed.

  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint