-
Notifications
You must be signed in to change notification settings - Fork 496
GH-304: Added Remove and RemoveAll methods to SecureStorage
#330
Conversation
We no longer consider the `SecAccessible` value when _retrieving_ KeyChain records anymore, so it’s unnecessary to pass this value into the Get call, and unnecessary to have a platform specific overload with this parameter for getting a record.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| var kc = new KeyChain(accessible); | ||
|
|
||
| return Task.FromResult(kc.ValueForKey(key, Alias)); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happened to this method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have the set below...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having an overload with SecAccessible is no longer necessary since the actual get request never uses this value to look up an existing key.
| return Task.FromResult(kc.ValueForKey(key, Alias)); | ||
| } | ||
|
|
||
| public static Task SetAsync(string key, string value, SecAccessible accessible) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is the set.
This comment has been minimized.
This comment has been minimized.
|
build |
We don’t use the overload with SecAccessible any longer.
This comment has been minimized.
This comment has been minimized.
|
build |
2 similar comments
|
build |
|
build |
|
build |
|
@Redth looks like everything is passing now... not sure why it still said failure |
|
@Redth looks like it may need a reboot as iOS sim wont launch i guess. |
|
build |
1 similar comment
|
build |
✅ Validation status: passed
For more details, please refer to the build report. Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report. |
Description of Change
Adds
Remove(string key)andRemoveAll()API's to SecureStorage.Also removes
GetAsync(string key, SecAccessible accessible)from iOS as we no longer useSecAccessibleit to query for existing records, so this overload is unnecessary.Bugs Fixed
API Changes
List all API changes here (or just put None), example:
Added:
bool SecureStorage.Remove(string key);void SecureStorage.RemoveAll();Removed:
Task<string> GetAsync(string key, SecAccessible accessible);PR Checklist