mbleigh / twitter-auth

Standard authentication stack for Rails using Twitter to log in.
355 stars 48 forks source link

OauthUser.identify_or_create_from_access_token won't work for strings #9

Closed chancancode closed 15 years ago

chancancode commented 15 years ago

Despite the error message from the first line of OauthUser.identify_or_create_from_access_token (oauth_user.rb line 14) said "Must authenticate with an OAuth::AccessToken or the string access token and secret." - it actually won't work for Strings. The next line will cause a NoMethodError / String#get.

My use case for using string tokens and secrets: My app has an "app user" and I need to parse the timeline of this app user. I saved the app user's token and secret in twitter_auth.yml and I need to be able to create an OauthUser based on these credentials.

chancancode commented 15 years ago

Patch submitted.

mbleigh commented 15 years ago

Accepted patch.