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
Re-configure api token when using keyring #160
Comments
which keyring are you using? Are you using the system keyring on osx or using |
Oh sorry. keyring on an Ubuntu machine. So that's probably |
If you are using
where If you are using your system keystore then there should be a key named I will probably modify the |
Yeah I also tried |
I've tried |
I have never actually used gnome-keyring, apparently deleting a key is not easy: I am trying to add in a prompt now to the logout command. |
Yeah another solution I've read online is |
I have added the prompt, hopefully it will work for you. You will have to build go-jira locally from source: |
|
If you just want to install the binary:
That should install it to -Cory |
I don't get the prompt when running |
I know for a fact that I'm running a different version since I'm now seeing this issue #163 |
Not sure what going on. The tests failed on the build due to the prompt being added (test's dont expect that prompt) , but that wont effect your build. I built it locally and it worked for me. |
Could it be that |
If that is the case then it implies your api-token has been flushed from the keychain and you should be good? |
I should be yes - but I'm not. I've also tried restarting, deleteting |
Lets take a step back, when you run something like |
When I use When I don't use |
Okay, I am pretty confused with what is going on. In theory when you get the 401 we are supposed to prompt you again for another token to use, but that code may have been lost in a refactor. I dont have time to really dig into this further, for now can you unset the |
I'll try this tomorrow as I'm no longer at my work computer where I had this problem. Which exact property are you talking about when you're referring to |
You said you have |
Oh yes, you're right. Got mixed up. |
Whops. Using the environment variable works fabulously. |
I can now reproduce the issue. It should ask for a new api-token when we get a 401, but for some reason it is just throwing an error while trying to parse the 401 response as json. I will try to get it resolved. |
made some fixes, released: https://github.com/Netflix-Skunkworks/go-jira/releases/tag/v1.0.17 |
Was this issue fixed? am still experiencing this. I entered the wrong API key by mistake the first time, and now if i include |
I've ended up with a bad API token inside keyring that is no longer granted for usage.
How can I refresh the token and store a new one?
The text was updated successfully, but these errors were encountered: