Hi
I'm trying to migrate my application from AAD graph api to Microsoft graph api endpoints. I get an error on the below line
string graphResourceId = "https://graph.microsoft.com/";
AuthenticationResult authResult = await authContext.AcquireTokenByAuthorizationCodeAsync(code, new Uri(appRedirectUrl), credentials, graphResourceId);
error raised:
AADSTS53000: Device is not in required device state: compliant. Conditional Access policy requires a compliant device, and the device is not compliant. The user must enroll their device with an approved MDM provider like Intune.
"interaction_required"
thanks,
VSree