Giter VIP home page Giter VIP logo

Comments (4)

mtt88 avatar mtt88 commented on August 11, 2024

I would be happy to pick up this enhancement.

I also believe that any requests we send that include a password should not be stored in the request history which the API maintains, or at the very least the secure request parameters should be sanitized/removed.

Future API enhancements (such as http://www.reddit.com/dev/api#POST_api_update_password) require passwords to be sent as a request parameter.

A possible work around could also be to perform a API request as per the http://www.reddit.com/dev/api#POST_api_login which bypasses storing a request history.

I do not have the code base open so I am not able to reference JRAW's methods / variable names exactly but I hope this is clear enough.

Thoughts?

from jraw.

mattbdean avatar mattbdean commented on August 11, 2024

My first thought would be to include a flag in the RestRequest class for if it contains a password, and then add it to the history if that flag is false.

However, I have been working on migrating JRAW from Apache's HttpComponents to Square's much simpler OkHttp so that this library can focus more on high-level networking instead of having to maintain the mini-framework wrapped around HttpComponents. This issue might best be left unresolved until that time which I expect to be by Thursday, Friday at the very latest.

from jraw.

mattbdean avatar mattbdean commented on August 11, 2024

I finished the switch. You can find the commit here.

from jraw.

mattbdean avatar mattbdean commented on August 11, 2024

Closing in favor of #18

from jraw.

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.