xoauth
xoauth copied to clipboard
Able to create empty connection but unable to delete it
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
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.