Skip to content

pixlet login via headless ssh #1089

@johnpc

Description

@johnpc

I am attempting to push to my tidbyt from a script on my raspberry pi, which has no display/mouse/keyboard/etc.

I'd like to call

pixlet login

but when I do, I see the following error

We just opened your browser to visit:

https://login.tidbyt.com/oauth2/auth?client_id=d8ae7ea0-4a1a-46b0-b556-6d742687223a&code_challenge=92LhSS3jE2VU3VPmd_QiC18YZm3OlbDacmUz2kfLi9w&code_challenge_method=S256&redirect_uri=http%3A%2F%2Flocalhost%3A8085&response_type=code&scope=device+offline_access&state=T4odQg3eMLhAC9gPgZjrVMsk-v2tEHK1LY3_gvJ3CfY

Error: no DISPLAY environment variable specified

Furthermore, when I visit the sign in url, I cannot link it because it redirects to

http://localhost:8085/?code={code}&scope=device+offline_access&state=oGU7WJkq64EXEO5cRQ6gl2PfZMexcr96Eyet8Y5texg

When I click the link, this opens localhost:8085 in the browser on my host machine, not the raspberry pi. Therefore, the pixlet login server never receives the request.

I even attempted to curl that url from a different tab in the raspberry pi, but the pixlet login process then died with the following error:

getting auth token: state mismatch in 3-legged-OAuth flow

I am requesting that pixlet login be updated to work for headless computers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions