Skip to content

Cannot authorize with pub.dartlang.org on Chrome OS #2081

Open
@lukef

Description

@lukef

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requesttype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions