question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MsalServiceException: AADSTS53001: Device is not in required device state: domain_joined.

See original GitHub issue

Which Version of MSAL are you using ? Microsoft.Identity.Client v2.7.0

Platform UWP

What authentication flow has the issue?

  • Desktop / Mobile
    • Interactive
    • Integrated Windows Auth
    • Username Password
    • Device code flow (browserless)
  • Web App
    • Authorization code
    • OBO
  • Web API
    • OBO

Other? - please describe;

Is this a new or existing app? The app is in production, I haven’t upgraded MSAL, but started seeing this issue. The conditional access policy to make sure de device is domain joined has been added to AAD. Also using the latest version of MSAL or even the Preview version of MSAL giving the same error.

Repro

string[] scopes = new string[] { "https://graph.microsoft.com/User.Read" };
await publicClientApp.AcquireTokenByIntegratedWindowsAuthAsync(scopes);
or
await publicClientApp.AcquireTokenAsync(scopes);
  • In Package.appxmanifest i added these capabilities.
  <Capabilities>
    <Capability Name="internetClient" />
    <Capability Name="privateNetworkClientServer" />
    <Capability Name="internetClientServer" />
    <uap:Capability Name="enterpriseAuthentication" /> 
    <uap:Capability Name="userAccountInformation" />
    <uap:Capability Name="sharedUserCertificates" />
  </Capabilities>

Expected behavior Acquire a token.

Actual behavior Receiving exception MsalServiceException. error: “interaction_required” error_description: “AADSTS53001: Device is not in required device state: domain_joined.”

Possible Solution I think the UWP app is not able to determine if the device is domain joined. Maybe i’m missing some capabilities?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jmprieurcommented, Mar 6, 2019

no, @rdeveen : it’s a feature that needs to be integrated (after we have GA MSAL.NET)

0reactions
rdeveencommented, Mar 6, 2019

So, it’s not a bug in de MSAL library?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure AD Conditional Access - Require Domain Joined ...
The desired conditional access policy will only work if the device is Hybrid Azure AD joined. Meaning that the domain joined device is...
Read more >
Azure AD authentication & authorization error codes
Learn about the AADSTS error codes that are returned from the Azure AD security token service (STS).
Read more >
Encountering sign in errors due to conditional access ...
Sign-in error code: 53000 Failure reason: Device is not in required device state: {state}. Conditional Access policy requires a compliant device ...
Read more >
Azure AD Sign-in Error 53001
Error 53001 - Conditional Access policy requires a domain joined device, and the device is not domain joined. Have the user use a...
Read more >
What is error 53001? - Old School Gamers
Error 53001 - Conditional Access policy requires a domain joined device, and the device is not domain joined. Have the user use a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found