Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch Interactive Auth to DeviceCode in CodeSpaces and non-WSL Remote scenarios #221

Merged
merged 2 commits into from
Jun 29, 2022

Conversation

tehcrashxor
Copy link
Member

@tehcrashxor tehcrashxor commented Jun 29, 2022

AB#2694410

When the user is running PAC in a remote scenario such as CodeSpaces or SSH (but not WSL remoting), we cannot use Interactive Auth, as the localhost of the machine running PAC is not the same localhost as the machine running the browser.

For these scenarios, the user can just use --deviceCode. If they don't supply that arg however, they end in a state that can never return control back to the user, as PAC is waiting for redirect that will never come.

This change sets an Environment Variable in those cases, which PAC uses to default in the device code flow instead of Interactive.

@tehcrashxor tehcrashxor merged commit 285c099 into main Jun 29, 2022
@tehcrashxor tehcrashxor deleted the tehcrash-2206-disableInteractiveAuthWhenRemote branch June 29, 2022 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants