Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError when finding oauth token(Mongoid) #57

Closed
thefron opened this issue Apr 4, 2011 · 1 comment
Closed

TypeError when finding oauth token(Mongoid) #57

thefron opened this issue Apr 4, 2011 · 1 comment

Comments

@thefron
Copy link

thefron commented Apr 4, 2011

When requesting a request token, i get an error:
TypeError (can't convert Hash into Integer):
app/models/client_application.rb:48:in `verify_request'
I backtraced in and figured out that the error is from oauth/rack/oauth_filter.rb:31
oauth_token = client_application.tokens.first(:conditions=>{:token => request_proxy.token})
I think it should be something like this:
oauth_token = client_application.tokens.where(:conditions=>{:token => request_proxy.token}).first

@thefron
Copy link
Author

thefron commented Apr 5, 2011

I figured out that this doesn't happen with 0.4.0.pre5 version anymore

@thefron thefron closed this as completed Apr 5, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant