Bug Report (IF I DO NOT CHANGE THIS THE ISSUE WILL BE AUTO-CLOSED) #3020

Open
opened 2026-01-30 23:11:01 +00:00 by claunia · 0 comments
Owner

Originally created by @isaacrlevin on GitHub (Jul 31, 2019).

Environment

Windows build number: 10.0.18941.1001
Windows Terminal version (if applicable): Source

Steps to reproduce

  • Fresh Install of Terminal from Source
  • Try to open Azure Cloud Shell Connector

Expected behavior

  • Device Flow kicks off and you can connect to Azure

Actual behavior

  • Get following message

Could not connect to Azure. You may not have internet or the server might be down.

Opening up Fiddler, the request is failing, here is the request

POST https://login.microsoftonline.com/common/oauth2/devicecode HTTP/1.1
Connection: Keep-Alive
Content-Type: application/x-www-form-urlencoded; charset=utf-8
User-Agent: cpprestsdk/2.10.13
Content-Length: 57
Host: login.microsoftonline.com

client_id=0&resource=https://management.core.windows.net/

and response

HTTP/1.1 400 Bad Request
Cache-Control: no-cache, no-store
Pragma: no-cache
Content-Type: application/json; charset=utf-8
Expires: -1
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
x-ms-request-id: 036d9b04-0b15-4948-88e3-1298fe521f00
P3P: CP="DSP CUR OTPi IND OTRi ONL FIN"
Set-Cookie: fpc=AgBw0kjQZyJGh-9yya_oOWo; expires=Fri, 30-Aug-2019 13:29:10 GMT; path=/; secure; HttpOnly
Set-Cookie: esctx=AQABAAAAAAAP0wLlqdLVToOpA4kwzSnx6Nn0i9n3KONl8oqKUDrwVI49N60kNuXitGhI2l65usEtATWKSOh8_SSS6SxU8qs6Mc2TKjto45yvCwsR1FnOxysOiKELlbMM8oFUyR0pRNEedN5J_pDsAlMLiz5CCixbFrYu1kevQ7G277G0tWGQ1Bmr6yQvertj7I1EFoMdyWkgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly
Set-Cookie: x-ms-gateway-slice=prod; path=/; secure; HttpOnly
Set-Cookie: stsservicecookie=ests; path=/; secure; HttpOnly
Date: Wed, 31 Jul 2019 13:29:10 GMT
Content-Length: 468

{"error":"invalid_request","error_description":"AADSTS50059: No tenant-identifying information found in either the request or implied by any provided credentials.\r\nTrace ID: 036d9b04-0b15-4948-88e3-1298fe521f00\r\nCorrelation ID: 62f6beea-e136-430d-8262-d762ad319f00\r\nTimestamp: 2019-07-31 13:29:10Z","error_codes":[50059],"timestamp":"2019-07-31 13:29:10Z","trace_id":"036d9b04-0b15-4948-88e3-1298fe521f00","correlation_id":"62f6beea-e136-430d-8262-d762ad319f00"}

Looks like no client_ id is being set in code. Do you need to set this somewhere?

Originally created by @isaacrlevin on GitHub (Jul 31, 2019). # Environment ```none Windows build number: 10.0.18941.1001 Windows Terminal version (if applicable): Source ``` # Steps to reproduce - Fresh Install of Terminal from Source - Try to open Azure Cloud Shell Connector # Expected behavior - Device Flow kicks off and you can connect to Azure # Actual behavior - Get following message > Could not connect to Azure. You may not have internet or the server might be down. Opening up Fiddler, the request is failing, here is the request ``` POST https://login.microsoftonline.com/common/oauth2/devicecode HTTP/1.1 Connection: Keep-Alive Content-Type: application/x-www-form-urlencoded; charset=utf-8 User-Agent: cpprestsdk/2.10.13 Content-Length: 57 Host: login.microsoftonline.com client_id=0&resource=https://management.core.windows.net/ ``` and response ``` HTTP/1.1 400 Bad Request Cache-Control: no-cache, no-store Pragma: no-cache Content-Type: application/json; charset=utf-8 Expires: -1 Strict-Transport-Security: max-age=31536000; includeSubDomains X-Content-Type-Options: nosniff x-ms-request-id: 036d9b04-0b15-4948-88e3-1298fe521f00 P3P: CP="DSP CUR OTPi IND OTRi ONL FIN" Set-Cookie: fpc=AgBw0kjQZyJGh-9yya_oOWo; expires=Fri, 30-Aug-2019 13:29:10 GMT; path=/; secure; HttpOnly Set-Cookie: esctx=AQABAAAAAAAP0wLlqdLVToOpA4kwzSnx6Nn0i9n3KONl8oqKUDrwVI49N60kNuXitGhI2l65usEtATWKSOh8_SSS6SxU8qs6Mc2TKjto45yvCwsR1FnOxysOiKELlbMM8oFUyR0pRNEedN5J_pDsAlMLiz5CCixbFrYu1kevQ7G277G0tWGQ1Bmr6yQvertj7I1EFoMdyWkgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly Set-Cookie: x-ms-gateway-slice=prod; path=/; secure; HttpOnly Set-Cookie: stsservicecookie=ests; path=/; secure; HttpOnly Date: Wed, 31 Jul 2019 13:29:10 GMT Content-Length: 468 {"error":"invalid_request","error_description":"AADSTS50059: No tenant-identifying information found in either the request or implied by any provided credentials.\r\nTrace ID: 036d9b04-0b15-4948-88e3-1298fe521f00\r\nCorrelation ID: 62f6beea-e136-430d-8262-d762ad319f00\r\nTimestamp: 2019-07-31 13:29:10Z","error_codes":[50059],"timestamp":"2019-07-31 13:29:10Z","trace_id":"036d9b04-0b15-4948-88e3-1298fe521f00","correlation_id":"62f6beea-e136-430d-8262-d762ad319f00"} ``` Looks like no client_ id is being set in code. Do you need to set this somewhere?
claunia added the Needs-TriageNeeds-Tag-FixNeeds-Author-Feedback labels 2026-01-30 23:11:02 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#3020