I have integrated microsoft's ADAL Library for iOS https://github.com/AzureAD/azure-activedirectory-library-for-objc.
I authenticated the azure's proxy share point site and keep the app in idle state for more than an hour. After I activate the app and click on any hyper-link I get the following error
Cannot add a new item in the keychain. Error code: -25243. Attributes: { acct = cHJhcGF0aWxAZXF1aW5peC5jb20; svce = "MSOpenTech.ADAL.1|aHR0cHM6Ly9sb2dpbi5taWNyb3NvZnRvbmxpbmUuY29tLzcyYWRiMjcxLTJmYzctNGFmZS1hNWVlLTlkZTZhNTlmNmJmYg|CC3513A0-0E69-4B4D-97FC-DFB6C91EE132|YzczOWU0ZmItNTE1ZC00N2JhLWIzOGMtZTk2MjZjOGRhODAy"; }. ErrorCode: 11. 2015-09-08 16:41:36.154 ProjectName[32578:3728597] ADALiOS [2015-09-08 11:11:36 - C739E4FB-515D-47BA-B38C-E9626C8DA802] ERROR: Error raised: 11. Additional Information: Domain: ADAuthenticationErrorDomain ProtocolCode:(null) Details:Cannot add a new item in the keychain. Error code: -25243. Attributes: { acct = cHJhcGF0aWxAZXF1aW5peC5jb20; svce = "MSOpenTech.ADAL.1|aHR0cHM6Ly9sb2dpbi5taWNyb3NvZnRvbmxpbmUuY29tLzcyYWRiMjcxLTJmYzctNGFmZS1hNWVlLTlkZTZhNTlmNmJmYg|MzE5ZWY2MTUtNGNiMi00ZTY1LTk3YmQtNjlhNWZlZDE2N2E0|YzczOWU0ZmItNTE1ZC00N2JhLWIzOGMtZTk2MjZjOGRhODAy"; }. ErrorCode: 11.I have implemented the required methods as mentioned in the usage section of above link. I referred https://github.com/OfficeDev/Office-365-SDK-for-iOS/issues/83, http://stackoverflow.com/questions/7989258/ios-keychain-secitemadd-returns-25243, and http://stackoverflow.com/questions/4115744/how-to-share-keychain-data-between-ios-applications
How to keep the user authenticated even if the user keep the app in idle state for more than an hour? I ran the app in the device and keychain sharing group has been enabled.