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

pixlet login via headless ssh #1089

Open
johnpc opened this issue Sep 12, 2024 · 0 comments
Open

pixlet login via headless ssh #1089

johnpc opened this issue Sep 12, 2024 · 0 comments

Comments

@johnpc
Copy link

johnpc commented Sep 12, 2024

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.

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

No branches or pull requests

1 participant