Description
Dart: Dart VM version: 2.1.1 (Unknown timestamp) on "linux_x64"
OS: Chrome OS (Beta Channel - 73), Linux Beta (Debian Stretch)
Running pub uploaders add <email>
will fail during the authorization process because the callback will redirect to localhost
to finish the authorization step on the local dev machine. Because the web browser is running on Chrome OS (natively) and the Dart server / executable is running virtualized inside Chrome OS's Linux environment, localhost
is not available.
Some common ports are available / forwarded to the linux subsystem, but not all of them so the server will not be accessible.
Chrome OS does use http://penguin.linux.test:<port>
as a way to access "localhost" when using non-common ports but the authorization will see this as an external redirect and disallows it.
I'm not sure if there is a way to authorize uploaders without a web browser or to some how work around this issue?