microsoftgraph / msgraph-sdk-serviceissues

Tracks service issues for follow up.
5 stars 0 forks source link

Connect-MgGraph : AADSTS70000: The provided value for the input parameter 'device_code' is not valid. #33

Closed ryanspletzer closed 3 years ago

ryanspletzer commented 4 years ago

Anyone else noticing this? I'm seeing it on multiple machines, re-installed the Graph modules to troubleshoot but still persists. Cert-based auth still works, but device code flow doesn't.

image

ryanspletzer commented 4 years ago

Tracing in Fiddler it appears that the correct device_code is being presented back to the Azure AD token endpoint on the first poll, but the subsequent poll leads to this error... could be an AAD issue?

peombwa commented 4 years ago

@ryanspletzer This is an AAD service issue as it happens when calling /oauth2/v2.0/token endpoint.

I would recommend you open a support case for this via the Azure Portal. I'll also follow up with AAD team.

peombwa commented 4 years ago

A workaround for this is to use Connect-MgGraph with -TenantId : Connect-MgGraph -TenantId {YOUR_TENANT_ID}.

ryanspletzer commented 3 years ago

Probably can close this, yeah?

peombwa commented 3 years ago

Thanks @ryanspletzer!! Closing since this has now been fixed.