Brokered authentication does not work with target/compile SDK set to 30
Closed this issue · 2 comments
Describe the bug:
Brokered authentication with Microsoft Company portal works with:
- minSdkVersion = 21
- compileSdkVersion = 29
- targetSdkVersion = 29
But when I change it to
- minSdkVersion = 21
- compileSdkVersion = 30
- targetSdkVersion = 30
Instead, a Microsoft login page is opened and device management state can't be retrieved during auth.
To Reproduce
See above
Expected behavior:
Brokered authentication still works.
Screenshots and logs:
Before (SDK 29):
Smartphone (please complete the following information):
- Device: Pixel 2 XL
- OS: Android 11
Intune app wrapping tool (please complete the following information):
-
What version of the wrapper are you using? Are you using the latest version?
Latest version -
What platform is your app based in (Java, Xamarin based, Cordova, etc)?
Capacitor and Cordova -
For pre-wrapping errors, does the app build without being wrapped?
yes -
For post-wrapping errors, does the app launch without being wrapped?
yes -
Do you see a trend with it only being reproduced on a specific device?
all Androids
Hi @ryandegruyter,
The App Wrapping Tool doesn't make any changes to app authentication, so I wouldn't expect it to cause any issues. Are you using ADAL or MSAL for authentication? Auth logs would help to diagnose the issue.
hi @rygo-msft, it might have been a misconfig from our side. We moved away from the wrapper and started integrating the SDK which gives us better results.