Comments (11)
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.
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.
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.
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.
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.
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.
Thanks for the reply.
Have you tried the provider functionality?
from oauth-plugin.
Nope. Good luck, seems quite straight forward.
from oauth-plugin.
Just a big bump but I have the same problem :
undefined method
callback_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.
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.
OK cheers.
from oauth-plugin.
Related Issues (20)
- Mongoid Validate Invalid Option HOT 1
- Stack level too deep error HOT 3
- Authenticating oauth but not interactive
- Not compatible with Devise and mongoid running HOT 1
- Is it possible to allow different permissions?
- oauth-plugin 0.4.1 fails tests with ruby 1.8.7
- how can I separate the OAuth Authorization server and Resource server
- Cannot test on Google OAuth 2.0 Playground
- Request Token Lookup Fail
- Bypass authorization for once authorized user-app HOT 2
- Where did :verify_oauth_consumer_signature go?
- Processing of URL Get parameters fails
- Subfolder oauth in models.
- How to override 'site' option for Freshbooks
- Trouble with Mongoid
- Superclass mismatch for class Oauth2Token HOT 2
- OAuth2::Error in callback2 when trying to connect consumer to facebook
- Add ruby 1.9 dependency
- Library does not work with Rails 5.1 due to use of before_filter HOT 1
- What is the best fork? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oauth-plugin.