I am facing a very strange authentication problem in my app.
To get a valid adal token I use the adaljs library, which works fine. I get a valid token and can connect to my Azure AppService.
The code works perfectly fine for desktop browsers but does fail when I try to access my AppService with a mobile device and a adfs managed user.
Using a "cloud only" user works fine, but whenever I try to use a user which gets synced from my AD I get the following error when trying to get the second token:
AADSTS50131: Your device is required to be managed to access this resource.
The problem here is that the device is definitely managed. When I add an exception for this user in intune, I can access the App via the mobile device.
Has anybody a clue what could be the problem here? Any help would be appreciated.
Facing the same issue. I have a published app through Azure AD App Proxy that works from a managed PC, but will not load from a mobile device. The mobile device is Intune managed. Getting the same error. Any chance you found a resolution to this?
Hi Tim, I did not really manage to find a solution. I solved the issue by setting an exception for mobile browsers in the intunes settings. So basically we made the application accessible for not managed devices. All apps like Outlook and so forth still need a device to be managed, so it was ok for our client. If you ever find a real solution for this problem, it would be nice if you would share it with me ^^. Best regards Alex