Ruby on Rails Wednesday, August 31, 2011

require 'openid/store/filesystem'
require "openid/fetchers"

OpenID.fetcher.ca_file = "#{Rails.root}/certs/ca-bundle.crt"

provider :openid, OpenID::Store::Filesystem.new('./tmp'), :name =>
'google', :identifier => 'https://www.google.com/accounts/o8/id'

provider :facebook, 'yourinfo', 'yourinfo', {:client_options => {:ssl =>
{:verify => false}}}

provider :twitter, 'yourinfo', 'yourinfo'


This is my configuration for development...

You can create a certs folder in your rails root and put the
ca-bundle.crt file in there. You can find it here:

http://certifie.com/ca-bundle/ca-bundle.crt.txt

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment