Locksmith icon indicating copy to clipboard operation
Locksmith copied to clipboard

Enable kSecAttrAccessibleAfterFirstUnlock

Open RudyB opened this issue 8 years ago • 3 comments

I am trying to access a users password from a widget on a locked iPhone. How do I enable kSecAttrAccessibleAfterFirstUnlock with Locksmith?

RudyB avatar Feb 07 '17 05:02 RudyB

have you got an answer on this? I need to do the same too..

lohithkorp avatar Jan 10 '20 13:01 lohithkorp

Did y'all try looking at the source code? https://github.com/matthewpalmer/Locksmith/search?q=kSecAttrAccessibleAfterFirstUnlock&unscoped_q=kSecAttrAccessibleAfterFirstUnlock

getaaron avatar Jan 10 '20 13:01 getaaron

yes @getaaron ! I inhertied my class have from SecureStorable and then set the accessible variable as public var accessible: LocksmithAccessibleOption? = {return .afterFirstUnlock}() as suggested by Matt in one of the other issues. But, the keychain items are not accessible from background.

At this moment, the accessible is set to default and it is whenUnlocked. Can you please explain how I can change this?

lohithkorp avatar Jan 14 '20 10:01 lohithkorp