RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: ghosh99
AWESOME article ...worked like a charm except one change.
If you installed RoR using RailsInstaled make this SSL fix. https://gist.github.com/fnichol/867550
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
AWESOME article ...worked like a charm except one change.
If you installed RoR using RailsInstaled make this SSL fix.
https://gist.github.com/fnichol/867550
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