pixie-io / pixie

Instant Kubernetes-Native Application Observability
https://px.dev
Apache License 2.0
5.6k stars 430 forks source link

I cannot get px cli auth token when in self-hosted mode #2007

Closed shengjiangfeng closed 2 months ago

shengjiangfeng commented 2 months ago

When i use px auth login --mannual , i cannot get auth token anywhere . I deploy pixie cloud in self-hosted mode. Can you help me?

ddelnano commented 2 months ago

Hi @shengjiangfeng, what happened when you loaded the URL in your browser from the px auth login --manual command?

shengjiangfeng commented 2 months ago

The param '--manual' will load the url in headerless mode. Where can i get this token ?

image
ddelnano commented 2 months ago

@shengjiangfeng you need to access the https://work.dev.withpixie.dev:443/login?local_mode=true webpage and it will provide the token.

shengjiangfeng commented 2 months ago
image

When i copy the token in browser, it give me an error.

shengjiangfeng commented 2 months ago

Ok, this is good now. I used proxy in my terminal. Thanks !