ledokku icon indicating copy to clipboard operation
ledokku copied to clipboard

GraphQL endpoint : missing auth token

Open zedalaye opened this issue 5 years ago • 5 comments

Bug report

Describe the bug

Ledokku keeps asking me to register an ssh-key into dokku.

After digging the DevTools console, I found that the graphql endpoint misses an auth token.

Screenshots

image

System information

  • Version of dokku: [0.22.0]
  • Version of ledokku: [0.5.0]

zedalaye avatar Dec 10 '20 17:12 zedalaye

@zedalaye thanks for opening the issue.

You will need to register the ssh key to run Ledokku.

After that, try refreshing the page and you will see the Github login button.

Let me know if it doesn't work that way.

Akirtovskis avatar Dec 10 '20 18:12 Akirtovskis

I already registered the ssh key:

$ dokku ssh-keys:list
SHA256:nbIxfGoOuEkU/wYg3xWQtUISUHr45BhNuY96ePQWeyc NAME="ledokku" SSHCOMMAND_ALLOWED_KEYS="no-agent-forwarding,no-user-rc,no-X11-forwarding,no-port-forwarding"

zedalaye avatar Dec 10 '20 18:12 zedalaye

At Github OAuth app settings, I set up authorization callback url to https://ledokku.mydomain.ext but, as I'm behind an HA Proxy, I defined DOKKU_SSH_HOST to the internal IP of my VM (192.168.0.xx)

zedalaye avatar Dec 11 '20 09:12 zedalaye

@zedalaye okay, so this might actually be the issue, from the screenshot you shared it looks like the ssh key setup did not work and ledokku is not able to connect to your server, in the screenshot you still need to add the ssh key to dokku, so if you did it there is a problem during the connection. I am not certain that you can use the internal IP to connect ledokku to your server, we only tried with public IP. Not sure if some configuration needs to be updated in order to support private IP.

pradel avatar Dec 11 '20 10:12 pradel

@zedalaye Did you end up figuring it out?

automotola avatar Aug 18 '22 12:08 automotola