# Auth0 in an InTune MDM wrapped iOS app

**URL:** <https://community.auth0.com/t/auth0-in-an-intune-mdm-wrapped-ios-app/105608>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [April 27, 2023, 6:05am UTC](https://community.auth0.com/t/auth0-in-an-intune-mdm-wrapped-ios-app/105608 "2023-04-27T06:05:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andreas-gavnit](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@Andreas-gavnit](https://community.auth0.com/u/Andreas-gavnit)\
**Post date:** [April 27, 2023, 6:05am UTC](https://community.auth0.com/t/auth0-in-an-intune-mdm-wrapped-ios-app/105608/1 "2023-04-27T06:05:36Z")

</div>

I am trying to use the Auth0 SDK for iOS in an app that is wrapped by InTune MDM. The app runs on a local network, and is thus not connected to the internet as such.

The use of Auth0 SDK works perfectly, when the app is not wrapped by InTune. When the app doesn’t work, I can see that only two calls from the device are made - the first POST to /u/login and the second GET to /authorize/resume  
… Then the process just halts. Really halts, there is not even a hint of timeouts in the view or anything…

Network personel tells me that the request traffic is routed properyl to internet, and the sign-in is registered ok in the Auth0 application.

Are there anything I need to set up, configure or otherwise be aware of, when using Auth0 iOS SDK like this? Thanks!

---

<div class="post-metadata">

**Author:** ![Andreas-gavnit](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@Andreas-gavnit](https://community.auth0.com/u/Andreas-gavnit)\
**Post date:** [May 10, 2023, 5:08am UTC](https://community.auth0.com/t/auth0-in-an-intune-mdm-wrapped-ios-app/105608/2 "2023-05-10T05:08:47Z")

</div>

Solved!

The app is now able to access Auth0 - thru an above-an-beyond effort by Auth0 support, the obstacles have been cleared. I am really impressed by the reply to my support ticket - thank you James!

> I’ve done some digging into this issue and have found that this appears to be a compatibility issue between the web provider the Auth0.Swift SDK uses, and the InTune MDM SDK.
> 
> By default, the Auth0.Swift SDK uses the ASWebAuthenticationSession, which causes InTune to block the redirection to your application after the authentication flow is completed in the Universal Login. You can find some documentation around this in the InTune SDK documentation and their associated GitHub repository, which I will link below:
> 
> [Microsoft Intune App SDK for iOS developer guide | Microsoft Learn](https://learn.microsoft.com/en-gb/mem/intune/developer/app-sdk-ios#special-considerations-when-using-msal-for-app-initiated-authentication)  
> [Callback URL scheme not working while using ASWebAuthenticationSession for third-party SSO · Issue #298 · msintuneappsdk/ms-intune-app-sdk-ios · GitHub](https://github.com/msintuneappsdk/ms-intune-app-sdk-ios/issues/298#issuecomment-1410864272)
> 
> The InTune documentation above specifies how you can configure the InTune SDK to enable MSAL app-initiated authentication when using a web provider other than WKWebView (WKWebView is not supported by the Auth0.Swift SDK).

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [May 10, 2023, 9:02am UTC](https://community.auth0.com/t/auth0-in-an-intune-mdm-wrapped-ios-app/105608/3 "2023-05-10T09:02:27Z")

</div>

Glad it’s figured out and thanks for sharing with the rest of community!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [May 24, 2023, 9:02am UTC](https://community.auth0.com/t/auth0-in-an-intune-mdm-wrapped-ios-app/105608/4 "2023-05-24T09:02:29Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
