Note that there are some explanatory texts on larger screens.

plurals
  1. POBuilding a new strategy for Omniauth, but Omniauth can't find it
    primarykey
    data
    text
    <p>I'm new to Rails and to Omniauth, so sorry in advance for the dumb question.</p> <p>I'm trying to do an Omniauth strategy for the Deezer website. <a href="http://www.deezer.com/en/developers/simpleapi/oauth" rel="noreferrer">http://www.deezer.com/en/developers/simpleapi/oauth</a></p> <p>First, I set up a basic rails application to test the Facebook strategy. Here is my code in Github : <a href="https://github.com/geoffroymontel/omniauth-test" rel="noreferrer">https://github.com/geoffroymontel/omniauth-test</a></p> <p>And it works fine. Good.</p> <p>Then I added those files in my app lib directory</p> <pre><code>lib/omniauth-deezer.rb lib/omniauth/deezer.rb lib/omniauth/deezer/version.rb lib/omniauth/deezer/strategies/deezer.rb </code></pre> <p>and added</p> <pre><code>provider :deezer, ENV['DEEZER_APP_ID'], ENV['DEEZER_APP_SECRET'], :perms =&gt; 'basic_access,email' </code></pre> <p>in</p> <pre><code>config/initializers/omniauth.rb </code></pre> <p>But when I start the app with</p> <pre><code>rails s </code></pre> <p>I get the following error message</p> <pre><code>/home/geoffroy/.rvm/gems/ruby-1.9.2-p290@rails3tutorial2ndEd/gems/omniauth-1.0.2/lib/omniauth/builder.rb:33:in `rescue in provider': Could not find matching strategy for :deezer. You may need to install an additional gem (such as omniauth-deezer). (LoadError) from /home/geoffroy/.rvm/gems/ruby-1.9.2-p290@rails3tutorial2ndEd/gems/omniauth-1.0.2/lib/omniauth/builder.rb:30:in `provider' </code></pre> <p>Thanks for your help</p> <p>Best</p> <p>Geoffroy</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload