Code Monkey home page Code Monkey logo

Comments (4)

alexweininger avatar alexweininger commented on June 3, 2024

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.

chrisbossard avatar chrisbossard commented on June 3, 2024

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.

alexweininger avatar alexweininger commented on June 3, 2024

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.

AzCode-Bot avatar AzCode-Bot commented on June 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.