RailsCasts Pro episodes are now free!

Learn more or hide this

Kaushik's Profile

GitHub User: ghosh99

Comments by Kaushik


AWESOME article ...worked like a charm except one change.

If you installed RoR using RailsInstaled make this SSL fix.

I used the same pattern to allow sign in with LinkedIn

Use this gem "omniauth-linkedin-oauth2"

and use this provider :
config.omniauth :linkedin_oauth2, ENV["LINKEDIN_KEY"], ENV["LINKEDIN_SECRET"]

Also you can get the email address from the session so that the user will be automatically created.

In user.rb model class self.from_omniauth method add this line
user.email = auth.info.email