Entra ID Joined device intermittently loses device identity in token requests — "Invalid token" errors and Windows Hello PIN error 0x80284001, fixed by reboot

Mountain Pond 1,716 Reputation points
2026-07-07T14:16:14.6366667+00:00

Hi.

I'm observing a problem on one device that the user keeps coming back with periodically, and I'm running out of ideas on how to help.

Device: Windows 11, Entra ID Joined. The user signs in to Windows with a local account, but Teams, Outlook, and OneDrive use their work account.

The user has no issues on other devices.

Phase 1

The user was included in a test Conditional Access policy that explicitly blocked access to Office 365 from certain devices: all Windows devices that are not Hybrid Joined or Entra ID Joined were explicitly denied access.

Everything worked fine until, roughly once a week, the user started reporting the error "Something went wrong [657rx], Invalid credentials. Unexpected sub status (6008)" when trying to open Outlook.

I checked the non-interactive sign-ins in Entra ID and saw an "Invalid token" error, and that the blocking Conditional Access policy had been triggered because the Device Type was undetermined — even though it's the same device, and in previous successful sign-in events the Device Type was Entra ID Joined.

After a reboot, everything works fine again.

Phase 2

We decided to pause the policy testing and removed the user from it. The policy is definitely no longer applied to the user. However, after some time the same problem occurred again. Now I can see the policy is not blocking access, but the issue is the same — "Invalid token".

Phase 3

I decided to switch the user's local profile to an Entra ID account. I performed a profile migration, and the user now signs in with their Entra ID account and has set up Windows Hello.

A week later, the user reported getting an error while signing in with their PIN:

"Something went wrong and your PIN isn't available (code: 0x80284001)."

A reboot resolves the issue.

In the sign-in logs I see the following, but I'm not sure whether it's related to the problem:

Sign-in error code: 500302

Failure reason: The client id {appId} in subassertion (actor token) is not included in forwardableOnBehalfOfOriginsAcceptedPrecedingAppsList for PFT OBO flow.

Additional Details: The app owner must update their first party app registration to include the appid as an expected sender of PFTs.

Thank you.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

1 answer

Sort by: Most helpful
  1. AI answer

    2026-07-07T14:16:57.4233333+00:00

    The symptoms point to intermittent issues with the device’s Microsoft Entra identity and its primary refresh token (PRT), plus a separate Windows Hello for Business PIN provisioning/authentication problem. All of them being fixed by a reboot strongly suggests transient token/PRT or network issues rather than a permanent misconfiguration.

    A practical way forward is:

    1. Use the Entra Windows device troubleshooter on this specific device
      Since the issue is isolated to one Windows 11 Entra‑joined device, start with the built‑in troubleshooter:
      1. Sign in to the Microsoft Entra admin center as at least a Reports Reader.
      2. Go to Entra IDDevicesAll devices → select the problematic device → Diagnose and solve problems.
      3. Under Windows 10+ related issue, select Troubleshoot.
      4. Select instructions and follow the steps to download and run the tool on the affected device, then collect and zip the authlogs folder.
      5. Upload the zip in the same Diagnose and solve problems pane. The troubleshooter will analyze device join/PRT/auth flows and return specific next steps, including whether to contact support.
    2. Explicitly check for PRT and CloudAP errors on the device
      Because the Conditional Access evaluation sometimes sees the device as “undetermined” and returns “Invalid token”, verify that the PRT is healthy:
      • Follow the guidance in Troubleshoot primary refresh token issues on Windows devices to collect Microsoft Entra logs for a repro session on this device.
      • In the Microsoft Entra analytic and operational logs, look for:
        • CloudAP error codes (AAD_CLOUDAP_E_*) and network errors (ERROR_WINHTTP_*).
          Common network errors like ERROR_WINHTTP_TIMEOUT, ERROR_WINHTTP_NAME_NOT_RESOLVED, ERROR_WINHTTP_CANNOT_CONNECT, ERROR_WINHTTP_CONNECTION_ERROR indicate transient connectivity issues that can cause PRT refresh failures and “Invalid token” results.
        • If such errors appear, use events 1022 (analytic) and 1084 (operational) to identify the URL being accessed and confirm that the device can reach it without proxy interference.
    3. Verify UPN and device join state consistency
      Now that the user signs into Windows with an Entra account, make sure the UPN and join state are clean:
      • For Entra‑joined devices, the UPN is the text entered at sign‑in. If CloudAP logs show AAD_CLOUDAP_E_OAUTH_USERNAME_IS_MALFORMED, correct the UPN to an internet‑style sign‑in name (RFC 822) and ensure it matches the Entra user object.
      • If the device had any previous hybrid‑join or domain‑join state, confirm that it is now only Entra‑joined and that there are no conflicting registrations.
    4. Treat the Windows Hello PIN error as a token/authorization issue and re‑provision if needed
      The PIN error 0x80284001 is not directly listed in the Windows Hello error table, but similar server‑side or token issues during PIN operations are mitigated by:
      • Signing out and signing back in.
      • If sign‑out/in does not help and the error recurs, unjoining and rejoining the device to Entra ID, then re‑provisioning Windows Hello for Business.
        For related errors (for example 0x801C03ED), guidance is to:
      • Sign out and sign in again.
      • If unresolved, unjoin the device from Azure AD/Entra ID and rejoin.
      • Ensure the user has permission to join devices and register Windows Hello for Business keys.
    5. Collect full diagnostic and network traces if the problem persists
      If the issue continues to appear weekly:
      • Use the PRT troubleshooting checklist to collect Entra logs during a repro.
      • Collect network traces with netsh trace start scenario=internetClient_dbg capture=yes persistent=yes, repro the issue (lock/unlock, sign‑in, Outlook/Teams access), then netsh trace stop.
      • Share the resulting nettrace.cab and Entra logs with Support as recommended.

    This combination of the Entra device troubleshooter, PRT/CloudAP log review, UPN/join state validation, and potential re‑provisioning of Windows Hello/Entra join should identify whether the root cause is transient network/PRT refresh failure, a malformed identity in tokens, or a misconfigured device registration.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.