Azure-Samples / contoso-real-estate

Intelligent enterprise-grade reference architecture for JavaScript, featuring OpenAI integration, Azure Developer CLI template and Playwright tests.
MIT License
889 stars 528 forks source link

[Bug] `azd auth login` in CodeSpaces fails to open browser #318

Closed diberry closed 1 year ago

diberry commented 1 year ago

Are you accessing the project from the GitHub Codespaces?

Note: The project is optimized to run on Codespaces. We welcome contributions to enhance it for cross-platform local development, but it's not something we will prioritize right now. Thank you!

Describe the bug Expect azd auth login process to successfully open browser. I don't know if this is an issue with running CodeSpaces in browser or azd or this specific project.

To Reproduce Steps to reproduce the behavior:

  1. In CodeSpace in browser, try azd auth login
  2. Copy device code
  3. Press enter as instructed
  4. "Error launching browser. Manually go to: https://microsoft.com/devicelogin"
  5. See error

image

Expected behavior Steps to complete login are successful in CodeSpaces.

Screenshots If applicable, add screenshots to help explain your problem.

OS (please complete the following information):

Additional context Add any other context about the problem here.

anfibiacreativa commented 1 year ago

That is a known issue that has to do with the Azure (ADD) auth flow, and we can't fix. Please refer to the docs here: https://github.com/Azure-Samples/contoso-real-estate#deploy-to-azure-1

There is a PR open to add this to our readme