MetricSign
Start free
Low severityauthentication

Power BI Error:
AADSTS70016

What does this error mean?

Device code flow is wachtend op de gebruiker om de code in te voeren op microsoft.com/devicelogin.

Common causes

  • 1Gebruiker heeft de device code nog niet ingevoerd op https://microsoft.com/devicelogin (normaal gedrag tijdens polling-window)
  • 2Polling-interval te kort — client respecteert de `interval` in de device_authorization respons niet, waardoor `slow_down`/`authorization_pending` blijft terugkomen
  • 3Gebruiker zit vast op MFA, Conditional Access prompt of consent-scherm in Microsoft Entra ID (voorheen Azure AD)
  • 4Device code is verlopen (default 15 min) maar client blijft pollen in plaats van een nieuwe code aan te vragen
  • 5Verkeerde flow gekozen: device code flow gebruikt voor een scenario waar authorization code flow met PKCE passender is (bijv. interactieve desktop-app met browser beschikbaar)

How to fix it

  1. 1Bevestig dat de eindgebruiker de getoonde user_code daadwerkelijk heeft ingevoerd op https://microsoft.com/devicelogin en de sign-in volledig heeft afgerond inclusief MFA en consent
  2. 2Controleer of je client de `interval` (seconden) uit de `/devicecode` respons respecteert — pol niet sneller dan dat, anders blijft Entra ID `authorization_pending` of `slow_down` retourneren
  3. 3Behandel `authorization_pending` als verwachte tussenstatus, niet als fout: blijf pollen tot je `access_token`, `expired_token`, `authorization_declined` of `bad_verification_code` terugkrijgt
  4. 4Als de code is verlopen (`expired_token`): vraag een nieuwe device code aan via `POST {tenant}/oauth2/v2.0/devicecode` en toon die opnieuw aan de gebruiker — hergebruik nooit een verlopen code
  5. 5Als de gebruiker geen tweede device wil/kan gebruiken: schakel over op authorization code flow + PKCE voor de Power BI / Fabric / ADF service principal in plaats van device code flow

Frequently asked questions

What does AADSTS70016 mean?

OAuth 2.0 device flow error. Authorization is pending. The device w

How do I fix this error?

Check your application registration, token configuration, and user permissions in the Azure portal. Review Conditional Access policies if the error is policy-related.

Source · learn.microsoft.com/en-us/entra/identity-platform/reference-error-codes#aadsts-error-codes

Other authentication errors