Intune Android SDK integration

Denis Telipskiy 0 Reputation points
2023-10-27T12:59:53.9233333+00:00

I am trying to implement Intune support for our Android app. We have already successfully implemented Intune support for our iOS app. Based on our app architecture we have our own login and don't use MSAL for user's login.

In the iOS case (using Intune SDK for iOS) after successful user login into the system if the user settings contain "mamManaged" flag we are using loginAndEnrollAccount method from IntuneMAMEnrollmentManager and it works fine. We don't need to link/interact with MSAL library, specify any MS app registration details like clientID, redirect URLs, etc.

But based on Intune SDK for Android docs, it seems for Android platform it is implemented by the other way. We should use MSAL for user login and after use this account for MAM registration. MSAL SDK for Android has PublicClientApplication class for getting MS token and "create" methods there require auth_config.json file with app MS app registration details. Based on our architecture and business needs we cannot create app registration for this (only for Intune login). Digging the docs we found (https://learn.microsoft.com/en-us/mem/intune/developer/app-sdk-get-started#give-your-app-access-to-the-intune-app-protection-service-optional):

"If your app is using its own custom Azure Active Directory (AAD) settings for authentication, then the following steps should be taken for both public store apps, as well as internal LOB apps. The steps do not need to be taken if your app is using the Intune SDK default client ID."

We want to use Intune SDK default client ID for our Android app integration (the same as it works by default for iOS), but we cannot find any info about default clientID, redirect URL, etc., that should be specified in auth_config.json.

It is not sensitive data, but we cannot find any information about Intune SDK default client to use with Intune Android SDK. Please, provide info on how we can use the default Intune client.

Microsoft Intune Android
Microsoft Intune Android
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Android: An open-source mobile platform based on the Linux kernel, developed by Google, and maintained by the Open Handset Alliance.
242 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,480 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Simon Ren-MSFT 30,756 Reputation points Microsoft Vendor
    2023-10-30T07:31:20.3966667+00:00

    Hi,

    Thank you for posting in Microsoft Q&A forum.

    Please refer to the official article:

    Intune App SDK for Android - Understand the MSAL Prerequisite

    Android SDK

    Thanks for your time. Have a nice day!

    Best regards,

    Simon


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.