GithubHelp home page GithubHelp logo

Comments (11)

simonmorley avatar simonmorley commented on July 23, 2024

Hi, this is exactly the problem I've been having. Been struggling for days now and then saw your post!

Just wondering... did you need to uninstall the previous gems before installing these ones?

Also, which version on the config files did you try? I got an error saying unknown action "login_required"

Thanks

from oauth-plugin.

calderonroberto avatar calderonroberto commented on July 23, 2024

Yes, uninstall the previous gem.

If you're using Rails 3, just add the line to your Gemfile and it'll uninstall and install it. What do you mean by config file? You need to define login_require as part of your login framework. I used devise (https://github.com/plataformatec/devise) which defines login_required and other methods which the oauth plugin requires. Once you install the plugin read the app/controllers/oauth_consumers_controller.rb file and uncomment appropriately.

from oauth-plugin.

simonmorley avatar simonmorley commented on July 23, 2024

Hi there,

Thanks for the answer! Much appreciated.

Managed to get it all installed and finally authenticated my services with great relief.

I seem to have run into an issue now when I call the services. I end up with:

uninitialized constant Twitter::OAuth

Have checked and checked if twitter's installed (which it is). There are no other rogue gems causing problems either.

Any chance you faced this issue and know a work around.

Simon

from oauth-plugin.

calderonroberto avatar calderonroberto commented on July 23, 2024

Have you configured your twitter oauth in initializers/oauth ? You're calling the method but it's not been initialized. Let me know if you still have issues. Also check that you did follow Pelle's instructions for setting ole plugin.

from oauth-plugin.

stream7 avatar stream7 commented on July 23, 2024

Hi,
I am having the same problems.
Did you manually add the routes or the generator did it for you?
Also what about oauth2? Have you tried that?

from oauth-plugin.

calderonroberto avatar calderonroberto commented on July 23, 2024

Manually add the routes. It should look like:

resources :oauth_consumers do
    get :callback, :on => :member
end

devise_for :user

root :to => "home#welcome"

Haven't tried OAuth2. Sorry.

from oauth-plugin.

stream7 avatar stream7 commented on July 23, 2024

Thanks for the reply.
Have you tried the provider functionality?

from oauth-plugin.

calderonroberto avatar calderonroberto commented on July 23, 2024

Nope. Good luck, seems quite straight forward.

from oauth-plugin.

 avatar commented on July 23, 2024

Just a big bump but I have the same problem :

undefined methodcallback_oauth_consumer_url' for #OauthConsumersController:0x007f80992020f8`

I already have your fix (it was generated). I still have this error.

Any ideas ?

P.S: I didn't do the branch switch because Rails 3 is officially supported and the Oauth gem is in my Gemlist.

from oauth-plugin.

 avatar commented on July 23, 2024

Ok my bad. I just didn't add the routes :

resources :oauth_consumers do
  get :callback, :on => :member
end

Thanks a lot anyway.

from oauth-plugin.

calderonroberto avatar calderonroberto commented on July 23, 2024

OK cheers.

from oauth-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.