bjornet / ttb

2 stars 0 forks source link

Manage credentials #7

Closed bjornet closed 1 year ago

bjornet commented 1 year ago

As a developer, I want a credential manager that is easy to use so that I can easily swap between different projects.

Acceptance Criteria

Implementation suggestion

// ~/.ttb/credentials.json

{
  "visitorToolbox": {
    "host": "visitortoolbox.atlassian.net",
    "email": "bjorn.christensson@osynlig.se",
  },
  "guestrix": {
    "host": "visitortoolbox.atlassian.net",
    "email": "bjorn.christensson@osynlig.se",
    "apiToken": "XhOewfehV7bSdEpqdAuP709D"
  }
}

// ## Improved UX
// a. `ttb <issue>`
// b. (if not authorized) show list of your credentials and select the correct one