GithubHelp home page GithubHelp logo

Comments (10)

michael-lazar avatar michael-lazar commented on May 28, 2024

I'm not too familiar with oauth but how would this work with an open source project? I can't force everybody to go to reddit and sign up for a developer key.

from rtv.

Brobin avatar Brobin commented on May 28, 2024

I haven't touched Oauth that much in Python, but here is an open source project, gcalcli that uses Google Oauth.

from rtv.

michael-lazar avatar michael-lazar commented on May 28, 2024

Looks like they slap it right in the code...

__API_CLIENT_ID__ = '232867676714.apps.googleusercontent.com'
__API_CLIENT_SECRET__ = 'Omited'

from rtv.

Brobin avatar Brobin commented on May 28, 2024

Yeah...that's not how you're supposed to do it.
Everyone on stackoverflow suggests using a config file, which would require each user to supply their own keys.

from rtv.

parkerlreed avatar parkerlreed commented on May 28, 2024

I was thinking like how newer mobile clients do it. They just drop to a webview to login to reddit. That way you can manage application access from within reddit.

lxmog0z

from rtv.

michael-lazar avatar michael-lazar commented on May 28, 2024

Reddit is deprecating cookie-based authentication on August 3rd, so this is now a huge priority. Even unauthenticated users will be throttled.

https://www.reddit.com/r/redditdev/comments/2ujhkr/important_api_licensing_terms_clarified/

from rtv.

parkerlreed avatar parkerlreed commented on May 28, 2024

Thanks for the status update.

from rtv.

professorjamesmoriarty avatar professorjamesmoriarty commented on May 28, 2024

@michael-lazar so atm it wants the index.html file from ~/.config/rtv/templates/templates/index.html
It would be far more ideal and portable to have this read from /usr/share/rtv/templates/index.html or similar. So that it can be updated accordingly from various means of packaging. (same method used in setup.py to include manpage)

from rtv.

michael-lazar avatar michael-lazar commented on May 28, 2024

@shaggytwodope what I ended up doing was moving the templates folder back inside of the project. That allowed me to configure setuptools to add the index.html to /usr/local/lib/python2.7/dist-packages/rtv/templates/. I would have preferred to keep the templates/ folder at the root of the project but I just couldn't get it to work without some giant workaround in setuptools.

from rtv.

michael-lazar avatar michael-lazar commented on May 28, 2024

This is finally released as of v1.6!

from rtv.

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.