Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parse updates to lastpass #86

Merged
merged 6 commits into from Feb 22, 2023
Merged

parse updates to lastpass #86

merged 6 commits into from Feb 22, 2023

Conversation

kspearrin
Copy link
Contributor

@kspearrin kspearrin commented Feb 14, 2023

Hey, thanks for this library. We are trying to use it to build some migration tools from other password managers into Bitwarden.

I am working with LastPass for now and noticed two issues:

  1. Favorites and notes was missing from the Account object. I added those in. I also added an Shared boolean property that tells us in the LastPass account came from a shared folder or not.

  2. UPDATE: I added a configuration option for this with a new static ParserOptions class.

    Here you are trying to parse Accounts that are marked as a secure note back to an Account structure. And if it cannot be parsed that way (for example, a credit card of address), they are skipped. We need these to still be included for our importer. In my PR here, I just skip this logic by adding false to the condition, but obviously this is not ideal. Do you suggest any other way to handle this or turn this functionality off? Perhaps with some sort of static settings assignment, ParseNotesToAccount = false or someting?

  3. Your LastPass example console app was not referencing the correct config.yaml property for client-id

@detunized
Copy link
Owner

detunized commented Feb 15, 2023 via email

@kspearrin kspearrin marked this pull request as ready for review February 15, 2023 13:16
@detunized
Copy link
Owner

I'm back and will check all this, test with real data, possibly rework a bit and merge. Thanks for the PR.

@kspearrin
Copy link
Contributor Author

I'm back and will check all this, test with real data, possibly rework a bit and merge. Thanks for the PR.

Great. We just published a tool that is powered by this library. See https://github.com/bitwarden/importer

Please let me know when these updates are available and I can close out the referenced issues.

@detunized detunized merged commit cf207ba into detunized:master Feb 22, 2023
@detunized
Copy link
Owner

@kspearrin, I released v10.3.0 on NuGet. It contains the changes you've added. I made some changes though.

  1. Renamed Favorite and Shared to IsFavorite and IsShared.
  2. Changed the type of IsFavorite from string to bool. This makes more sense.
  3. An instance of ParserOptions is passed to Vault.Open. I removed the static class to avoid having global state.

Would that be possible for you to add a link to this project in the readme of bitwarden/importer?

@kspearrin
Copy link
Contributor Author

@detunized Thanks. Updated the project here: bitwarden/importer@bc5b795

Special thank you added to the readme here: bitwarden/importer@b3804be

@detunized
Copy link
Owner

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants