Reputation: 10761
I tried setting up our Android app to work with Intune and ADAL authentication. I added it to a managed play store in Azure. My test Android device shows up as compliant. I also added a Conditional Access that require the device to be compliant. Downloaded the app via company portal.
When I log in I'm getting prompted to enter email and password in a web view. Then it redirects me to the following screen:
When I click "enroll now" it opens to install company portal.
I also tried adding the following example app: https://github.com/msintuneappsdk/Taskr-Sample-Intune-Android-App
Signed it and uploaded it to play store but getting the same error screen.
I have installed the Microsoft authenticator app but still the same message.
Upvotes: 0
Views: 584
Reputation: 10761
The problem was that I had not configured our application to use a broker (Microsoft Authenticator or Company portal). Without configuring a broker the conditional access policy configured in AD won't work.
More information here:
And here, look for broker support:
https://github.com/AzureAD/azure-activedirectory-library-for-android
Upvotes: 1