Closed ronakj closed 1 year ago
can you provide the contents of the Microsoft Authentication output pane:
And also anything that shows up in Dev Tools:
Nothing relevant in Dev Tools (no errors, warnings after login)
@joaomoreno looks like the UrlHandler in the Microsoft auth extension isn't firing. Any ideas why?
One thing that’s interesting is that my open-external extension (code here) works fine:
but when I start either the Microsoft or GitHub auth flows… their URL Handlers in the extension never fire… so the issue appears to be before the auth extensions, but we have Core & Codespaces layers still to choose from.
Another simple repro with GitHub auth:
Fugio: Mint Token
github
or microsoft
workflow
as the value for scopes. If you choose Microsoft, use offline_access
as the value for scopesGo through the flow. Works in Stable just fine... but not Insiders.
Adding @osortega + @jkeech from the Codespaces side.
@TylerLeonhardt this seems to be a CORS issue happening in the extension host worker
It also seems to only happen on latest insiders, if you go back in time and use an older version everything works fine. I'm unfamiliar with that particular request but perhaps there was a change in the request headers?
@osortega I think you must be experiencing something different from myself and @ronakj. I don't even get that far where that request happens.
@TylerLeonhardt has bisected the behavior change to have happened somewhere in this commit range: https://github.com/microsoft/vscode/compare/9084e081d4e89ed8ab67fce340d573c4e1378939...9233de805c8fb05fad4d9d1c15f22fbca85430ad
Ok so to but a brief summary here...
This was happening because the GitHub Authentication extension was running in both the web worker extension host and the remote extension host.
@alexdima pushed a change that influenced when the web worker extension host started and this issue should be fixed in the latest insiders.
However, this fix only applies to Codespaces and not Remote Tunnels. I will close this issue since it's fixed for Codespaces, but I will open another issue for Remote Tunnels.
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
This doesn't happen in stable version. I really want to make sure this issue doesn't get propagated to stable, because our Codespaces workflow is very heavily dependent on Microsoft auth working properly.