Git Product home page Git Product logo

Comments (7)

bcopeland avatar bcopeland commented on July 3, 2024 1

Just pushed a new branch which allows viewing attachments using "lpass show":

https://github.com/lastpass/lastpass-cli/tree/topic-attachments

from lastpass-cli.

kyleburton avatar kyleburton commented on July 3, 2024 1

Thanks for coding this up - I'm trying it out off of your branch and after adding a few fprintf's, I think I'm getting back an empty string (JSON) from cmd-show.c when it's calling lastpass_load_attachment when it is making the post via lastpass_load_attachment. Is the endpoint show_website.php correct? Or is there a different reason why I might be getting back an empty string? ""

from lastpass-cli.

ejcx avatar ejcx commented on July 3, 2024

This does not yet support secure note attachments.
A workaround for now is to keep your private keys as text in a regular note.

from lastpass-cli.

astoltz avatar astoltz commented on July 3, 2024

I will try that although https://forums.lastpass.com/viewtopic.php?f=7&t=94925 prevents it from being really viable.

from lastpass-cli.

bcopeland avatar bcopeland commented on July 3, 2024

As noted in #77 I just push a change to enable parsing of the secure note templates, please try it out.

from lastpass-cli.

akolesen avatar akolesen commented on July 3, 2024

Double-checked, looks like

        reply = http_post_lastpass("show_website.php", session, NULL,
                                   "token", session->token,
                                   "getattach", attach->storagekey, NULL);

returns ""

from lastpass-cli.

spencerwhyte avatar spencerwhyte commented on July 3, 2024

@kyleburton @akolesen "show_website.php" doesn't seem like the correct endpoint. I switched it to "getattach.php". Additionally, the reason that you are be getting back ("") from the call is that the "sharedfolderid" was not being provided to the server in that call. In other words if the attachment was part of a note in a shared folder, it would fail and return nothing ("").

from lastpass-cli.

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.