Loomio

Setting up google, persona etc

Adam PublicSeen by 408

Hi there,
I found instructions for setting up loomio to accept facebook login. However, instructions for the other available options (persona, google, twitter) seem to be missing.
Are there any that I may have missed or can someone assist?
In the meantime is there an easy way to disable these options?
Thanks
Adam

Robert Guthrie

Hi @adam16 the documentation gets pretty thin when you get to this part of the setup process.

It would be awesome if you wanted to help write it.

Specifically we need nice instructions for setting up a facebook app and setting the callback urls etc and the same for google.

If you end up setting these keys up.. if you could write some "click here then here" style instructions that would be super.

You don't need to do anything to setup Persona.. pity nobody uses it.

You'll see in the config/initializers/devise.rb file we use all the keys:

config.omniauth 'google_oauth2', Rails.application.secrets.google_key, Rails.application.secrets.google_secret, name: 'google'
config.omniauth :facebook, Rails.application.secrets.facebook_key, Rails.application.secrets.facebook_secret
config.omniauth :browser_id
config.omniauth :twitter, Rails.application.secrets.twitter_key, Rails.application.secrets.twitter_secret

The Rails.application.secrets thing is set from config/secrets.yml which sucks in the ENV for us.

Adam

Happy to look into this again.. Facebook is pretty straight forward.. however never setup with google before.. will do some experiments and see what I can sort out.

Robert Guthrie

The omniauth-google2 and onmicontacts pages describe it pretty well. Thanks for your help!