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

Able to create empty connection but unable to delete it #10

Open
dvruette opened this issue Jun 4, 2020 · 1 comment
Open

Able to create empty connection but unable to delete it #10

dvruette opened this issue Jun 4, 2020 · 1 comment

Comments

@dvruette
Copy link

dvruette commented Jun 4, 2020

Steps to reproduce:

xoauth setup add-scope accounting.settings random-connection
xoauth list
# there will be a connection with an empty name
xoauth delete
# will list the empty connection, gives error upon selecting that message

xoauth version: 1.0.0
operating system: macOS 10.15.5

@steve34581133
Copy link

steve34581133 commented Jul 12, 2020

Same problem here. I'm trying out xoauth to see what use I can make use of it. It's quite easy to create a connection without a name. It seems that un-named connections are impossible to delete.
Edit: Just worked out how delete an empty connection. Navigate to the .xoauth folder in the home directory for your user e.g. C:\Users\steve.xoauth. Edit the xoauth.json file with a suitable file editor (VS2019 will format the file making it easy to change). Locate and delete any unnamed json objects (the object name will have empty quotes and the Alias will most likely be empty).
Though I can run a few more xoauth commands now that the empty connection is gone, when I run the xoauth connect clientname command I get a message "failed to save tokens to keychain: The stub received bad data." However, the access and refresh tokens are created as expected and displayed in both the webbrowser and the command prompt.

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

2 participants