Start a new topic
Implemented

BitWarden Support

Eventually I'm going to move off LastPass (honestly RoyalTS has been keeping me on it lol) but I've been eyeing BitWarden pretty seriously. Is there any plans to add support for that?


Also it's open source: https://github.com/bitwarden


2 people like this idea

Hello Felix,


yes login and list works :-)


In this case, your best option for finding out what's wrong is to copy the script into a standalone file, replace all tokens ($) with actual values, then run it from terminal and observe the output.

and it works...

with python and python3

cb$ python royal.py -v
You are not logged in.
mac failed.
? Master password: [hidden]
Master password is required.

 i need to hit enter twice (no input!) and i see the json...


Got it working - some custom attributes could be parsed...

To be able to filter by collection would be awesome :-)

Hey Cee Bee!


First of, I'm glad you got it working. I don't quite understand what you changed that made it work though. Could you please elaborate a little bit? Might be useful for other users.


thx,

felix

The problem was that i have a entry of type card in the bitwarden vault.
This entry didnt had a name attribut.

This way the royaljson generation failed.

This is why limiting the script to query only for a specified collection would be great (and speed things up in case of big vaults...)

Hi Cee Bee,


that's weird. I haven't been able to create an item (no matter the type) in Bitwarden without a name. Can you share how you managed to do that?


Regarding limiting the scope: You can easily adjust the script to do that.

Take a look at line 271: 

cmd_list_items = [ bw_path, "list", "items", "--session", session_key ]


Here you can add additional parameters to instruct the list command to filter by certain criteria. For possible options, see the Bitwarden documentation: https://help.bitwarden.com/article/cli/#list


If you have something that can be shared with other users, please feel free to send a PR on Github!


Hope that helps!


cheers,

felix

Hi Felix,


How do you have to handle the session key? its now continues reloading and I think it has to do with the session key...


Regards,


Francis

Hi Francis,


login is repeated every time you reload the dynamic folder. This means that a new session key is requested every time your reload.

I'm not sure I understand the problem you're having. Could you please elaborate?


thx,

felix

Hi Felix,


I think I should get a popup message asking me for the 2fa code? If so, I do not get that popup...


Regards,


Francis

Hi Francis,


that's right, the script supports 2FA. The popup is not spawned by Royal TS/X though but by the TkInter, which is a dependency for the script as mentioned in the "Notes" section.

Do you have that dependency installed?

The best way to debug dynamic folder issues is to save the script to a standalone file and try running it from a terminal session. That way you should be able to find out what's wrong. Don't forget to replace the tokens ($) with actual values before trying to run it.


cheers,

felix

ok, I am on Mac so I need to figure out how to install Tkinter....

I also wil test in a standalone file, later today...

I think TK comes pre-installed on macOS but don't quote me on that. Otherwise you can of course use pip to install it.

Testing outside of Royal TSX is definitely the best way to troubleshoot.

I used brew to install in but , still no success....


Hi Francis,


did you try running the script outside of Royal TSX? If so, what's the output?

If you don't want to post such info publicly, please open a new support ticket.


thx,

felix

Login or Signup to post a comment