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

Split initializeCrypto #329

Merged
merged 3 commits into from
Nov 20, 2023
Merged

Split initializeCrypto #329

merged 3 commits into from
Nov 20, 2023

Conversation

dani-garcia
Copy link
Member

Type of change

- [ ] Bug fix
- [ ] New feature development
- [x] Tech debt (refactoring, code cleanup, dependency upgrades, etc)
- [ ] Build/deploy pipeline (DevOps)
- [ ] Other

Objective

Split initializeCrypto into separate user and organization methods, so clients won't need to hold on to the master password until after sync is done to initialize the organization keys.

@dani-garcia dani-garcia requested a review from Hinton November 9, 2023 16:28
@bitwarden-bot
Copy link

bitwarden-bot commented Nov 9, 2023

Logo
Checkmarx One – Scan Summary & Details3fdeafc5-d488-4450-a231-24b62e77538f

No New Or Fixed Issues Found

@dani-garcia dani-garcia requested a review from Hinton November 15, 2023 19:43
@dani-garcia dani-garcia merged commit 8788f18 into master Nov 20, 2023
45 checks passed
@dani-garcia dani-garcia deleted the ps/split-init-crypto branch November 20, 2023 10:03
dani-garcia added a commit that referenced this pull request Nov 23, 2023
…iometrics (#330)

```
- [ ] Bug fix
- [x] New feature development
- [ ] Tech debt (refactoring, code cleanup, dependency upgrades, etc)
- [ ] Build/deploy pipeline (DevOps)
- [ ] Other
```

## Objective
Enable the SDK to export the decrypted user key and expose a way to
initialize the SDK with it. The Android and iOS examples have been
revamped to allow choosing how to unlock the client.

Some small notes:
- The iOS example is directly storing the user key in a biometric
protected keychain, while that doesn't seem possible in Android.
Instead, we generate a key in the secure keystore and use it to
encrypt/decrypt the user key.
- The iOS example biometrics don't seem to work on the simulator and
require a real device for testing.

This depends on the refactor done on #329
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.

3 participants