Closed ricalo closed 9 years ago
Hey @Ricalo
My understanding is the following one: you can use ADAL with Android API level 14 but not as "out-of-the-box" as you do with API Level 18.
I will have to reach the ADAL guys on this matter, maybe we're missing a specific behavior or similar on lower APIs. You can try reaching them also, since we're just using ADAL as it were any other library.
Marcos
Thank you, @marcote. I'll try reaching out to them too.
I checked the ADAL samples and they use an utility to setup the encryption key if the SDK version is lower than 18. For more information, see
In my sample, I'm implementing such functionality in the AuthenticationController class.
Thank you @Ricalo . I will look for you sample and see if we can incorporate your code into our sample app to help other users with the similar concern.
Thanks again. Marcos
It's going to get published pretty soon. I'll let you know as soon as it goes live.
I'm assuming I can use API level 14 or higher since that's what ADAL requires. Note that I'm using Office 365 SDK for Android v 0.11.1 If that is not true{ just let me know what API level is supported. Thank you! } else { Keep reading :bowtie: }
In my app I get the authentication page, I type credentials, everything goes fine. Then I try to get the services using discoveryClient.getServices().read() The app fails with error Refresh token is failed and prompt is not allowed. However, if I upgrade my AVD to API level 18 or higher the error goes away.
Here is the code that I'm using:
I also get this in logcat when using an AVD with API level lower than 18
Any ideas? Thank you!