{"action":"created","issue":{"url":"https://api.github.com/repos/bndw/pick/issues/5","labels_url":"https://api.github.com/repos/bndw/pick/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/bndw/pick/issues/5/comments","events_url":"https://api.github.com/repos/bndw/pick/issues/5/events","html_url":"https://github.com/bndw/pick/issues/5","id":117740828,"number":5,"title":"Design changes","user":{"login":"bndw","id":4248167,"avatar_url":"https://avatars.githubusercontent.com/u/4248167?v=3","gravatar_id":"","url":"https://api.github.com/users/bndw","html_url":"https://github.com/bndw","followers_url":"https://api.github.com/users/bndw/followers","following_url":"https://api.github.com/users/bndw/following{/other_user}","gists_url":"https://api.github.com/users/bndw/gists{/gist_id}","starred_url":"https://api.github.com/users/bndw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bndw/subscriptions","organizations_url":"https://api.github.com/users/bndw/orgs","repos_url":"https://api.github.com/users/bndw/repos","events_url":"https://api.github.com/users/bndw/events{/privacy}","received_events_url":"https://api.github.com/users/bndw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bndw/pick/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"bndw","id":4248167,"avatar_url":"https://avatars.githubusercontent.com/u/4248167?v=3","gravatar_id":"","url":"https://api.github.com/users/bndw","html_url":"https://github.com/bndw","followers_url":"https://api.github.com/users/bndw/followers","following_url":"https://api.github.com/users/bndw/following{/other_user}","gists_url":"https://api.github.com/users/bndw/gists{/gist_id}","starred_url":"https://api.github.com/users/bndw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bndw/subscriptions","organizations_url":"https://api.github.com/users/bndw/orgs","repos_url":"https://api.github.com/users/bndw/repos","events_url":"https://api.github.com/users/bndw/events{/privacy}","received_events_url":"https://api.github.com/users/bndw/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-11-19T04:51:21Z","updated_at":"2015-11-22T23:10:11Z","closed_at":"2015-11-22T23:10:11Z","body":"The current interface and design is not very cohesive. This issue is to flush out changes.\r\n\r\n#### Concepts\r\nThese are the basic representations used.\r\n\r\n##### Credential\r\nA credential represents the username/password required to authenticate with something. A credential is identified by an alias. A credential's username may be derived from an existing *account*.\r\n\r\n```python\r\n# Example credential\r\n{\r\n  \"alias\": \"github\",\r\n  \"username\": \"bndw\",\r\n  \"account\": None,\r\n  \"password\": \"pPAAzdZJFm`-Et[zUIFYSQY?@fJG)qfsgnhW]g;vBjW_t[su@j\",\r\n  \"created_on\": 1447905515,\r\n  \"modified_on\": 1447905515\r\n}\r\n```\r\n\r\n\r\n##### Account (new)\r\nAn account is any email/username/phone number that you reuse. Account make it quicker to create new *credentials*.\r\n\r\n```python\r\n# Example account\r\n{\r\n  \"alias\": \"work\",\r\n  \"value\": \"user@example.com\",\r\n  \"type\": \"email\",\r\n  \"created_on\": 1447905515,\r\n  \"modified_on\": 1447905515\r\n}\r\n```\r\n\r\n```python\r\n# Example credential created using an account\r\n{\r\n  \"alias\": \"aws\",\r\n  \"username\": None,\r\n  \"account\": \"work\",\r\n  \"password\": \"pPAAzdZJFm`-Et[zUIFYSQY?@fJG)qfsgnhW]g;vBjW_t[su@j\",\r\n  \"created_on\": 1447905515,\r\n  \"modified_on\": 1447905515\r\n}\r\n```\r\n\r\n#### Desired features\r\n1. Ability to write credentials with a single command (e.g. **non** interactive)\r\n2. Ability to create a `credential` using an existing `account`, rather than typing the same email address a bunch\r\n3. Ability to control what data is printed to stdout when reading a credential (e.g. `pick foo`). Potential configurations:\r\n    * password only\r\n    * username only\r\n    * username and password\r\n\r\n#### Proposed command line interface\r\n1. `pick --write alias [username] [password]`\r\n2. `pick --write alias [password] --account alias`\r\n3. `pick github --output username password`"},"comment":{"url":"https://api.github.com/repos/bndw/pick/issues/comments/158817249","html_url":"https://github.com/bndw/pick/issues/5#issuecomment-158817249","issue_url":"https://api.github.com/repos/bndw/pick/issues/5","id":158817249,"user":{"login":"bndw","id":4248167,"avatar_url":"https://avatars.githubusercontent.com/u/4248167?v=3","gravatar_id":"","url":"https://api.github.com/users/bndw","html_url":"https://github.com/bndw","followers_url":"https://api.github.com/users/bndw/followers","following_url":"https://api.github.com/users/bndw/following{/other_user}","gists_url":"https://api.github.com/users/bndw/gists{/gist_id}","starred_url":"https://api.github.com/users/bndw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bndw/subscriptions","organizations_url":"https://api.github.com/users/bndw/orgs","repos_url":"https://api.github.com/users/bndw/repos","events_url":"https://api.github.com/users/bndw/events{/privacy}","received_events_url":"https://api.github.com/users/bndw/received_events","type":"User","site_admin":false},"created_at":"2015-11-22T23:10:11Z","updated_at":"2015-11-22T23:10:11Z","body":"I've decided against adding in accounts at this time."}}