Open idoshamun opened 6 years ago
Same problem
In 66bada2e66a5c83eb372f5002c2fee10d0609aba, the ability to specify an API session token was added.
It's more of a workaround, but I've done the following to be able to use roer when gate is configured to authenticate with GitHub:
curl -c cookies.jar -Lv https://gate:8084/credentials -H "Authorization: Bearer $GITHUB_PERSONAL_ACCESS_TOKEN”
SPINNAKER_API_SESSION=$(awk '/SESSION/ { print $NF }' cookies.jar)
$ SPINNAKER_API=https://gate:8084 roer --as ${SPINNAKER_API_SESSION} app list
Thanks @nextrevision
I tried to replicate this with Gitlab OAUTH and also Gitlab Personal Access Tokens but was unsuccessful.
In the end I found another way to get an existing SESSION ID via Chrome browser.
https://<your Deck URL>/pipelineTemplates
in Chrome. cookie: SESSION=<your session id here>
How can I provide an oauth token? roer is always redirected to the login page