Skip to content
This repository was archived by the owner on May 15, 2024. It is now read-only.

Conversation

@Redth
Copy link
Member

@Redth Redth commented Jun 26, 2018

Description of Change

Adds Remove(string key) and RemoveAll()API's to SecureStorage.

Also removes GetAsync(string key, SecAccessible accessible) from iOS as we no longer use SecAccessible it 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

  • Has tests (if omitted, state reason in description)
  • Has samples (if omitted, state reason in description)
  • Rebased on top of master at time of PR
  • Changes adhere to coding standard
  • Updated documentation (see walkthrough)

Redth added 4 commits June 25, 2018 21:18
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.
@dend

This comment has been minimized.

@Redth Redth requested a review from jamesmontemagno June 26, 2018 01:42
@dend

This comment has been minimized.

var kc = new KeyChain(accessible);

return Task.FromResult(kc.ValueForKey(key, Alias));
}
Copy link
Contributor

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?

Copy link
Contributor

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...

Copy link
Member Author

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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is the set.

@dend

This comment has been minimized.

@jamesmontemagno
Copy link
Collaborator

build

We don’t use the overload with SecAccessible any longer.
@dend

This comment has been minimized.

@jamesmontemagno jamesmontemagno added this to the 0.8.0-preview milestone Jun 26, 2018
@jamesmontemagno
Copy link
Collaborator

build

2 similar comments
@jamesmontemagno
Copy link
Collaborator

build

@jamesmontemagno
Copy link
Collaborator

build

@dend
Copy link
Contributor

dend commented Jun 27, 2018

✅ Validation status: passed

File Status Preview URL Details
DeviceTests/DeviceTests.Shared/SecureStorage_Tests.cs ✅Succeeded
Samples/Samples/View/SecureStoragePage.xaml ✅Succeeded
Samples/Samples/ViewModel/SecureStorageViewModel.cs ✅Succeeded
Xamarin.Essentials/SecureStorage/SecureStorage.android.cs ✅Succeeded
Xamarin.Essentials/SecureStorage/SecureStorage.ios.cs ✅Succeeded
Xamarin.Essentials/SecureStorage/SecureStorage.netstandard.cs ✅Succeeded
Xamarin.Essentials/SecureStorage/SecureStorage.shared.cs ✅Succeeded
Xamarin.Essentials/SecureStorage/SecureStorage.uwp.cs ✅Succeeded
docs/en/FrameworksIndex/xamarin-essentials-android.xml ✅Succeeded
docs/en/FrameworksIndex/xamarin-essentials-ios.xml ✅Succeeded
docs/en/FrameworksIndex/xamarin-essentials-uwp.xml ✅Succeeded
docs/en/FrameworksIndex/xamarin-essentials.xml ✅Succeeded
docs/en/Xamarin.Essentials/SecureStorage.xml ✅Succeeded

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.

@jamesmontemagno
Copy link
Collaborator

build

@jamesmontemagno
Copy link
Collaborator

@Redth looks like everything is passing now... not sure why it still said failure

@jamesmontemagno
Copy link
Collaborator

@Redth looks like it may need a reboot as iOS sim wont launch i guess.

@jamesmontemagno
Copy link
Collaborator

build

1 similar comment
@Redth
Copy link
Member Author

Redth commented Jun 28, 2018

build

@dend
Copy link
Contributor

dend commented Jun 28, 2018

✅ Validation status: passed

File Status Preview URL Details
DeviceTests/DeviceTests.Shared/SecureStorage_Tests.cs ✅Succeeded
Samples/Samples/View/SecureStoragePage.xaml ✅Succeeded
Samples/Samples/ViewModel/SecureStorageViewModel.cs ✅Succeeded
Xamarin.Essentials/SecureStorage/SecureStorage.android.cs ✅Succeeded
Xamarin.Essentials/SecureStorage/SecureStorage.ios.cs ✅Succeeded
Xamarin.Essentials/SecureStorage/SecureStorage.netstandard.cs ✅Succeeded
Xamarin.Essentials/SecureStorage/SecureStorage.shared.cs ✅Succeeded
Xamarin.Essentials/SecureStorage/SecureStorage.uwp.cs ✅Succeeded
docs/en/FrameworksIndex/xamarin-essentials-android.xml ✅Succeeded
docs/en/FrameworksIndex/xamarin-essentials-ios.xml ✅Succeeded
docs/en/FrameworksIndex/xamarin-essentials-uwp.xml ✅Succeeded
docs/en/FrameworksIndex/xamarin-essentials.xml ✅Succeeded
docs/en/Xamarin.Essentials/SecureStorage.xml ✅Succeeded

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.

@Redth Redth merged commit 26c14c7 into master Jun 28, 2018
@Redth Redth deleted the secure-storage-remove branch June 28, 2018 15:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants