Giter VIP home page Giter VIP logo

Comments (7)

jasonrudolph avatar jasonrudolph commented on May 27, 2024

Thanks for opening this issue.

To fix this issue, stratify-twitter needs to upgrade to a newer version of the twitter gem, and it needs to authorize via OAuth. (The current stratify-twitter code does not perform any authentication, since it wasn't previously required if you only wanted to read public data.)

from stratify.

jmburges avatar jmburges commented on May 27, 2024

So as of right now the twitter parts of stratify are broken?

from stratify.

jmburges avatar jmburges commented on May 27, 2024

Pondering how to refactor the code to handle an oauth handshake. Any ideas? I could just have two fields for the token and token_secret but that requires a lot on the user. I'd prefer not to refactor all the create/new code but that may be required but I can't think of a good way to do it.

from stratify.

jasonrudolph avatar jasonrudolph commented on May 27, 2024

So as of right now the twitter parts of stratify are broken?

stratify-twitter currently depends on 2.1.x of the twitter gem. The Gemfile is locked to v2.1.1. That gem has been removed from rubygems.org. So, when you try to run bundle install, it fails.

If you happen to have a copy of v2.1.1 of the twitter gem, stratify-twitter still works fine (for now). Since Twitter API v1.1 requires OAuth, and since stratify-twitter doesn't currently use OAuth, I expect stratify-twitter to stop working in the near future.

We'll likely need to update stratify-twitter to support OAuth and upgrade to the latest version of the twitter gem.

from stratify.

jasonrudolph avatar jasonrudolph commented on May 27, 2024

Pondering how to refactor the code to handle an oauth handshake. Any ideas? I could just have two fields for the token and token_secret but that requires a lot on the user

Moving forward, it's likely that a lot of Stratify collectors will need OAuth. (stratify-foursquare already uses an OAuth token, but the implementation leaves a lot to be desired.)

I wonder if we could have a generic OAuth mixin that can be included in any Stratify::Collector subclass. I'm not sure that this is the way to go, but it's the first thing I would try.

from stratify.

jmburges avatar jmburges commented on May 27, 2024

I feel like an OAuth Mixin would be a reasonable way to do it but the mixin would have to change the way the controller acts. Instead of the flow just being collector/new, enter fields, POST to collector/create. It will be collector/new which redirects somewhere then response to GET of some other action.

from stratify.

jasonrudolph avatar jasonrudolph commented on May 27, 2024

Stratify now uses the latest version of the twitter gem (v4.6.2). That should resolve this issue. If you still encounter problems setting up Stratify, please let me know.

When you set up a Twitter collector in the Stratify UI, the instructions will guide you to register your instance of Stratify on dev.twitter.com and generate an OAuth access token. Then, you can use those credentials to set up your Twitter collector. Using this approach, we avoid the complexity associated with implementing the OAuth handshake (which is really overkill for Stratify's needs).

from stratify.

Related Issues (1)

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.