Skip to content

device authentication errors

Jean-Marc Prieur edited this page Jan 30, 2021 · 5 revisions

Device authentication errors

What are the symptoms?

You get errors like "AADSTS50097" or "Device authentication is required".

What happens?

This error happens when a conditional access policy is applied to the resource you are accessing, which required that the device from which the token is acquired be managed by the organization, and that MSAL.NET proves this identity.

This is a conditional access policy applied by the tenant admin.

How to fix this?

To satisfy this requirement you will have to leverage WAM on Windows or the system browser (Edge on Chromium).

Getting started with MSAL.NET

Acquiring tokens

Web Apps / Web APIs / daemon apps

Desktop/Mobile apps

Advanced topics

FAQ

Other resources

Clone this wiki locally