DefaultAccessible seems to have the wrong default value #17582
Labels
area-essentials
Essentials: Device, Display, Connectivity, Secure Storage, Sensors, App Info
fixed-in-8.0.10
fixed-in-9.0.0-preview.2.10293
migration-compatibility
Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert
platform/iOS 🍎
platform/macOS 🍏
macOS / Mac Catalyst
s/triaged
Issue has been reviewed
t/bug
Something isn't working
Milestone
Description
For the last few days we've been diagnosing an issue for SecureStorage. It seems that SecureStorage.DefaultAccessible on iOS uses
Security.SecAccessible.WhenUnlocked
, while the documentation for it saysDefault value is <see cref="Security.SecAccessible.AfterFirstUnlock"/>.
. We couldn't find a location where DefaultAccessible is assigned to a value different to the default enum value in this repo, and the enum has the following values:So the default would be WhenUnlocked instead of the documented AfterFirstUnlock. Not sure if this is the intended behaviour and the docs are wrong, or the docs are correct and the value is incorrect.
If this is a spec issue, it'd be good to see the spec fixed and the existence of this platform specific setting highlighted in the docs. If it's an implementation issue, then the default value needs to be assigned in
SecureStorageImplementation
.Steps to Reproduce
No response
Link to public reproduction project repository
No response
Version with bug
7.0.92
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS, macOS
Affected platform versions
No response
Did you find any workaround?
SecureStorage.DefaultAccessible = SecAccessible.AfterFirstUnlock;
in AppDelegate.cs. Not sure if this is a spec issue or a bug, but figured I'd report either way.Relevant log output
No response
The text was updated successfully, but these errors were encountered: