I\'m attempting to use the SoundCloud SDK for user authentication. My first route after a user clicks \"sign in\":
get \"/login\" do
client = Soundcloud
/usr/local/etc/openssl/certs/
Make omniauth.rb look like this:
options = {
scope: "email",
:prompt => "select_account",
access_type: 'offline',
:client_options => {
:ssl => {
:ca_file => "/usr/local/etc/openssl/certs/ca-bundle.crt",
:ca_path => "/usr/local/etc/openssl/certs"
}
}
}
Rails.application.config.middleware.use OmniAuth::Builder do
provider :google_oauth2, Rails.application.secrets.client_id, Rails.application.secrets.client_secret, options
end
There is a gem to fix this issue, try adding gem 'certified', '~> 1.0'
to your Gemfile
.