Commit Graph

29 Commits

Author SHA1 Message Date
Igor Mandrigin 33eb25baf3 bring back `setUsername` that was removed by mistake 2019-01-15 13:38:35 +01:00
Igor Mandrigin 43e5512cab
Minimal security guarantees for react-native-keychain (#6)
* Implement security level guarantees for Android.

Supported security levels:
- ANY
- SECURE_SOFTWARE
- SECURE_HARDWARE (TEE or SE guarantees).

(1) Add `getSecurityLevel()` API that returns which security level is
supported on this Android version and the specific device.

(2) For APIs that store credentials, an additional optional parameter was added
that fails storing the credentials if the security level is not what is
expected.

```
// Store the credentials.
// Will fail if Keychain can't guarantee at least SECURE_HARDWARE level of encryption key.
await Keychain.setGenericPassword(username, password, Keychain.SECURITY_LEVEL.SECURE_HARDWARE);
```

(3) StongBox support on Android 9+ (and supported devices [Pixel 3]).

Co-Authored-By: mandrigin <mandrigin@users.noreply.github.com>
2018-12-19 09:11:10 +01:00
Max Risuhin 878d5491d2
Capability to store username for further usage 2018-06-30 12:21:52 +03:00
Joel Arvidsson c3990b0c09 Add Android support for getSupportedBiometryType 2018-02-27 16:20:37 +01:00
Joel Arvidsson ad8061e83d Update documentation in README 2018-02-27 13:58:37 +01:00
Joel Arvidsson c2cc3285b7 Resolve with false instead of throwing for platforms that can't imply authentication 2018-02-27 11:51:13 +01:00
Joel Arvidsson add90c5769 Remove *PasswordWithAuthentication and replace with accessControl option 2018-02-26 12:31:06 +01:00
Joel Arvidsson 37ea15ae5e Add APPLICATION_PASSWORD to accessControl options 2018-02-26 11:15:14 +01:00
Joel Arvidsson 618acc7789 Rename TOUCH_ID_* enums to BIOMETRY_* 2018-02-26 00:14:48 +01:00
Joel Arvidsson abed674800 Refactor iOS code and add accessGroup to *PasswordWithAuthentication 2018-02-25 23:53:42 +01:00
Joel Arvidsson 9c734ac9f9 Rename customPrompt to authenticationPrompt 2018-02-25 23:42:15 +01:00
Joel Arvidsson 9455bac5e9 Fix tvOS support 2018-02-25 20:21:01 +01:00
Joel Arvidsson 0b1b1d3395 Return null instead of throwing for getSupportedBiometryType on android 2018-02-25 19:23:36 +01:00
Joel Arvidsson d6544520f2 Rename *SecurePassword to *PasswordWithAuthentication and unify arguments 2018-02-25 19:20:49 +01:00
Joel Arvidsson d6a00596c4 Export enum options 2018-02-25 17:48:43 +01:00
Joel Arvidsson b227c59406 Don't throw in canImplyAuthentication 2018-02-25 17:07:18 +01:00
Joel Arvidsson aac2d3d8c4 Add getSupportedBiometryType 2018-02-25 17:05:33 +01:00
Joel Arvidsson 1497383434 Throw on methods not yet supported on android 2018-02-25 16:29:33 +01:00
Joel Arvidsson a751670b92 Format with prettier and add .prettierrc 2018-02-25 16:14:17 +01:00
Steff 172368f2fd Protect the data stored in keychain by TouchId or Passcode (#65)
* First draft of implementing secured storage support (TouchId or Passcode)

* minor improvements

* improving the implementation; Support for AppDelegate-notification

* minor changes and improvements

* provding requested constant as usability feature; added documentation to canImplyAuthentication

* updating .d.ts-file

* when fetching stored items using the traditional modality (not TouchId or Passcode protected) ignore any items that need authentication.
2018-02-25 15:55:17 +01:00
Joel Arvidsson 45799d5aa1 Add support for accessGroup option on iOS #4 #54 2017-02-10 11:26:38 +01:00
Joel Arvidsson 6eb0a35037 Refactor accessible argument into options 2017-02-10 10:58:39 +01:00
Alexander Jarvis 1c4562a421 Add accessible argument for iOS (#51)
* Fix accessible

* Make accessible configurable

* Fix semicolon

* Remove unused function
2017-02-10 09:34:58 +01:00
Joel Arvidsson eb9093aed7 Refactors native methods to use promises and deprecate callback argument 2017-01-10 23:00:51 +01:00
Joel Arvidsson e6cc3aa9f4 Add shared web credentials support (#40) 2017-01-10 22:25:04 +01:00
Joel Arvidsson e335c69ce9 Refactor to es2016 2016-11-04 11:42:12 +01:00
dryganets fd8663a8ec Add Typescript definitions and adapt callback interface fixed to match de facto usage (#38) 2016-10-27 10:58:02 +02:00
Vojtech Novak 60455e88ce Fixes broken error handling (#22) 2016-06-02 11:54:39 +02:00
Vojtech Novak d05b20c904 Added Android support w/ Facebook Conceal (#19)
Updates to Android storage

use password

added android support

readme update

implemented internet credentials on android

Merge Android and iOS index into 1 file.

Update flow version

Make error handling more consistent between Android and iOS

removing unneccessary binaries
2016-06-01 00:25:51 +02:00