Is there any way I can init an ODClient with a saved accessToken, that would come from an external API?
Use-case:
A user has an account for an iOS app called X, with SSO benefits - Single Sign-On.
Which means: if the user logs in using the X app account on his iPad, then logs in using credentials of an OneDrive account (in the same X app, here I use the OneDriveSDK), the user should be able to be automatically get logged in with his OneDrive account credentials whenever the user uses his iPhone with the same X app account credentials.
The accessToken of OneDrive would be passed between the apps by an external API.
Basically, I am asking if there's a method (or workaround) to overwrite that ODAccountStore or something else in order to make the SDK believe the app has saved credentials in the keychain.
Any downsides of why I shouldn't do so are welcome, I can clearly see that the design of the SDK is not allowing what I intend to do.
Which would let me create an ODAccountSession object.
But there's no visible way to init the ODClient object using just a clientID and then set the session how I did it before.
Is there any way I can init an ODClient with a saved accessToken, that would come from an external API?
Use-case: A user has an account for an iOS app called X, with SSO benefits - Single Sign-On.
Which means: if the user logs in using the X app account on his iPad, then logs in using credentials of an OneDrive account (in the same X app, here I use the OneDriveSDK), the user should be able to be automatically get logged in with his OneDrive account credentials whenever the user uses his iPhone with the same X app account credentials.
The accessToken of OneDrive would be passed between the apps by an external API.
Basically, I am asking if there's a method (or workaround) to overwrite that ODAccountStore or something else in order to make the SDK believe the app has saved credentials in the keychain.
Any downsides of why I shouldn't do so are welcome, I can clearly see that the design of the SDK is not allowing what I intend to do.
Previously, with LiveSDK I was using:
Which worked well.
Now, what I did find similar is the method:
Which would let me create an ODAccountSession object. But there's no visible way to init the ODClient object using just a clientID and then set the session how I did it before.
Any help would be much appreciated.