Comments (4)
Sorry you're experiencing so many problems when trying to sign in.
Please see the Enable and View Logs section of the wiki for how to capture and share Azure Account extension logs. It will help us a lot if you could collect and share these logs with us. Please omit any information you don't want to share before posting the logs on GitHub.
Also, are you behind a proxy of any kind? Proxies often cause issues with sign-in. See the Unable to Sign In While Using a Proxy section of our wiki for possible fixes.
from vscode-azure-account.
Sure these are the logs for the login attempt from the device code:
2023-06-29 10:05:58.771 [info] MSAL: [Thu, 29 Jun 2023 00:05:58 GMT] : @azure/[email protected] : Info - getTokenCache called
2023-06-29 10:05:58.777 [info] Attempting to reach URL "https://login.microsoftonline.com/"...
2023-06-29 10:05:59.008 [info] [Axios Request] POST https://login.microsoftonline.com/5b8193ca-bde1-4cb6-8b3c-8dfb48ca7921/oauth2/devicecode?api-version=1.0
2023-06-29 10:05:59.089 [info] Get Device Code request returned http error: 400 and server response: "Bad request"
2023-06-29 10:05:59.090 [error] Acquiring user code failed
I call the API https://login.microsoftonline.com/5b8193ca-bde1-4cb6-8b3c-8dfb48ca7921/oauth2/devicecode?api-version=1.0 I get an error:
{"error":"invalid_request","error_description":"AADSTS900144: The request body must contain the following parameter: 'client_id'.\r\nTrace ID: 61634be8-6510-45ee-8f9b-73dbb7b00600\r\nCorrelation ID: 2ba9811a-e965-4b07-bc83-e241451a86c7\r\nTimestamp: 2023-06-29 00:41:47Z","error_codes":[900144],"timestamp":"2023-06-29 00:41:47Z","trace_id":"61634be8-6510-45ee-8f9b-73dbb7b00600","correlation_id":"2ba9811a-e965-4b07-bc83-e241451a86c7","error_uri":"https://login.microsoftonline.com/error?code=900144"}
This is the clicking on "Sign in to Azure... type of way:
2023-06-29 10:05:28.945 [info] MSAL: [Thu, 29 Jun 2023 00:05:28 GMT] : @azure/[email protected] : Info - getTokenCache called
2023-06-29 10:05:28.951 [info] Attempting to reach URL "https://login.microsoftonline.com/"...
2023-06-29 10:05:29.920 [info] Attempting to reach URL "https://vscode.dev/redirect"...
2023-06-29 10:05:29.921 [info] Attempting to reach URL "https://login.microsoftonline.com/5b8193ca-bde1-4cb6-8b3c-8dfb48ca7921/oauth2/authorize?response_type=code&client_id=aebc6443-996d-45c2-90f0-388ff96faa56&redirect_uri=https%3A%2F%2Fvscode.dev%2Fredirect&state=http%3A%2F%2F127.0.0.1%3A55497%2Fcallback?nonce=M7BykBmsZ4WR7GR0YswfaQ%3D%3D&prompt=select_account"...
2023-06-29 10:05:41.302 [info] [Axios Request] POST https://login.microsoftonline.com/5b8193ca-bde1-4cb6-8b3c-8dfb48ca7921/oauth2/token?api-version=1.0
2023-06-29 10:05:41.376 [error] Get Token request returned http error: 400 and server response: "Bad request"
from vscode-azure-account.
Could you set the Log Level for the Azure Account extension to "Trace" or "Debug"? Also, are you behind a proxy?
from vscode-azure-account.
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!
from vscode-azure-account.
Related Issues (20)
- Cannot list subscriptions HOT 2
- Azure sign in keeps returning "you appear to be offline" HOT 4
- azure HOT 2
- Cannot sign into Azure HOT 4
- TSL 1.2 issue, despite forcing TSL 1.2 HOT 2
- Cannot list subscriptions
- Azure VS Code Account Login Not Working HOT 2
- Azure Account (Extension): You appear to be offline. Please check your network connection. HOT 8
- Not able to select subscriotion after signing in HOT 2
- my
- Cannot list subscriptions HOT 2
- Failing to activate azure account extension HOT 2
- Azure vs code extension doesn't support directory changes HOT 2
- Error occured when expanding storage accounts HOT 2
- Visual studio code is not loading the azure resources for subscription HOT 2
- can't sign into azure from vscode HOT 2
- Cannot sign in while using proxy HOT 2
- unable to sign into VS Code HOT 3
- Armando Ovalle j
- Migrate from AAD graph to MS graph HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-azure-account.