Comments (7)
Hi @DmitryRybakov,
Thanks for reporting this. Are you doing anything special with regard to overriding the keychain access group?
from onedrive-sdk-ios.
Hello.
I am not sure about overriding and why we would need it. The answer is highly possibly no. How it can be relevant?
Sent from my iPhone
On Apr 29, 2016, at 10:10 PM, Kevin Lam [email protected] wrote:
Hi @DmitryRybakov,
Thanks for reporting this. Are you doing anything special with regard to overriding the keychain access group?—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
from onedrive-sdk-ios.
I just wanted to check first that you don't have any special logic in your app for keychain sharing between apps which may affect this. The particular error code you are seeing is "errSecNoAccessForItem", returned by the OS call "SecAddItem" when there is an issue with keychain access group configuration. I will investigate to see if I can reproduce the issue.
from onedrive-sdk-ios.
Hi Kevin,
Here is my sample project on which I have managed to replicate the issue 2) https://www.dropbox.com/s/u6o1rd79acslbrr/OneDriveTest.zip?dl=0
I am wondering if it can be somehow connected with the configuration.
from onedrive-sdk-ios.
Hello Kevin,
Have you had a chance to look through the sample I have provided?
from onedrive-sdk-ios.
Hi Dmitry,
Thanks for posting your sample - I was able to reproduce the issue as described.
The error being logged to the console indicates the access/refresh token is not being saved correctly to the keychain. This is not ideal, but in the very short term at least you should be able to use the ODClient object returned from authenticatedClientWithCompletion (it does not return any error even when this message is being printed).
For the underlying cause of the error, it looks like ADAL expects the developer to add "keychain sharing" under the Capabilities tab of the project settings as documented here: https://github.com/AzureAD/azure-activedirectory-library-for-objc - search for "keychain setup" on the page.
In ADAL 1.2.4 (the version of ADAL that this SDK currently depends on), the keychain group you need to add is the app's bundle identifier (e.g. "com.breezy2.onedrivetest"). In ADAL 1.2.6 instead you need "com.microsoft.adalcache".
I will be posting a PR shortly updating the ADAL dependency to "~> 1.2" (will resolve to 1.2.6) and updating the README to mention the keychain access group. In the meantime, if you add both the app bundle identifier and "com.microsoft.adalcache" as keychain groups, I believe it should resolve the issue in both cases.
-Kevin
from onedrive-sdk-ios.
Thanks!
from onedrive-sdk-ios.
Related Issues (20)
- library not found for -lADAL HOT 2
- OneDrive for Business - New Apps will not work due to Office 365 Discovery API Deprecation HOT 10
- Streamable path of file HOT 1
- Download thumbnail HOT 2
- improvement: Supply thumbnail urls in item request instead of having a separate request
- nameConflict not work
- Is this sdk outdated? HOT 5
- Discovery API will be deprecated
- One Drive Login PresentContrller iOS13
- Deprecated API Usage (UIWebView) HOT 6
- Urgent :: Use of deprecated ADAL version HOT 11
- IOS onedrive SDK needs to be updated. Uiwebview has been abandoned and needs to be replaced with wkwebview HOT 1
- Can't Sign in with MS account HOT 2
- Install without pods ?
- H
- Asd
- P
- webDavUrl does not work in mobile platform
- OneDrive SDK for iOS
- OneDrive for Business cTag not updated when folder contents changes HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onedrive-sdk-ios.