|
If the phone passcode is not set (The code to unlock the phone) the tokens can't be added to the keychain:
SecOSStatusWith error:[-26275] The operation couldn’t be completed. (OSStatus error -26275 - Remote error : The operation couldn't be completed. (OSStatus error -26275 - ks_crypt: e00002bc failed to wrap item (class 12, bag: 0) Item can't be decrypted on this device, ever, so drop the item.))
This happens when in TrustedPersistantOAuth2Session.swift the keychainQuery dictionary (in the save function) does not have the kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly key. If it has the key (when passcode is set) everything works fine.
When this happens the oauth component keeps trying to request the tokens, staying in an infinite loop of request - fail.
|