{"action":"created","issue":{"url":"https://api.github.com/repos/rancherio/rancher/issues/595","labels_url":"https://api.github.com/repos/rancherio/rancher/issues/595/labels{/name}","comments_url":"https://api.github.com/repos/rancherio/rancher/issues/595/comments","events_url":"https://api.github.com/repos/rancherio/rancher/issues/595/events","html_url":"https://github.com/rancherio/rancher/issues/595","id":70470772,"number":595,"title":"Deleting default and re-entering will create new project","user":{"login":"tfiduccia","id":11514927,"avatar_url":"https://avatars.githubusercontent.com/u/11514927?v=3","gravatar_id":"","url":"https://api.github.com/users/tfiduccia","html_url":"https://github.com/tfiduccia","followers_url":"https://api.github.com/users/tfiduccia/followers","following_url":"https://api.github.com/users/tfiduccia/following{/other_user}","gists_url":"https://api.github.com/users/tfiduccia/gists{/gist_id}","starred_url":"https://api.github.com/users/tfiduccia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfiduccia/subscriptions","organizations_url":"https://api.github.com/users/tfiduccia/orgs","repos_url":"https://api.github.com/users/tfiduccia/repos","events_url":"https://api.github.com/users/tfiduccia/events{/privacy}","received_events_url":"https://api.github.com/users/tfiduccia/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rancherio/rancher/labels/area/project","name":"area/project","color":"FBCA04"},{"url":"https://api.github.com/repos/rancherio/rancher/labels/area/ui","name":"area/ui","color":"FfeA44"},{"url":"https://api.github.com/repos/rancherio/rancher/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"hibooboo2","id":1197823,"avatar_url":"https://avatars.githubusercontent.com/u/1197823?v=3","gravatar_id":"","url":"https://api.github.com/users/hibooboo2","html_url":"https://github.com/hibooboo2","followers_url":"https://api.github.com/users/hibooboo2/followers","following_url":"https://api.github.com/users/hibooboo2/following{/other_user}","gists_url":"https://api.github.com/users/hibooboo2/gists{/gist_id}","starred_url":"https://api.github.com/users/hibooboo2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hibooboo2/subscriptions","organizations_url":"https://api.github.com/users/hibooboo2/orgs","repos_url":"https://api.github.com/users/hibooboo2/repos","events_url":"https://api.github.com/users/hibooboo2/events{/privacy}","received_events_url":"https://api.github.com/users/hibooboo2/received_events","type":"User","site_admin":false},"milestone":null,"comments":11,"created_at":"2015-04-23T17:46:24Z","updated_at":"2015-04-25T23:43:38Z","closed_at":null,"body":"v0.17.0 (have auth on)\r\n1.  Rename default project to Project1\r\n2.  Create a new project called Project2\r\n3.  Set the default to Project2\r\n4.  Delete Project2\r\n5.  Exit out and re-enter (I actually re-entered in separate browser)\r\n\r\nResults:\r\nCreated a new Project called admin Default and made it the default\r\n\r\nExpected:\r\nShould see I have another project and set that one as default and not create a new one"},"comment":{"url":"https://api.github.com/repos/rancherio/rancher/issues/comments/96295919","html_url":"https://github.com/rancherio/rancher/issues/595#issuecomment-96295919","issue_url":"https://api.github.com/repos/rancherio/rancher/issues/595","id":96295919,"user":{"login":"vincent99","id":753917,"avatar_url":"https://avatars.githubusercontent.com/u/753917?v=3","gravatar_id":"","url":"https://api.github.com/users/vincent99","html_url":"https://github.com/vincent99","followers_url":"https://api.github.com/users/vincent99/followers","following_url":"https://api.github.com/users/vincent99/following{/other_user}","gists_url":"https://api.github.com/users/vincent99/gists{/gist_id}","starred_url":"https://api.github.com/users/vincent99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincent99/subscriptions","organizations_url":"https://api.github.com/users/vincent99/orgs","repos_url":"https://api.github.com/users/vincent99/repos","events_url":"https://api.github.com/users/vincent99/events{/privacy}","received_events_url":"https://api.github.com/users/vincent99/received_events","type":"User","site_admin":false},"created_at":"2015-04-25T23:43:38Z","updated_at":"2015-04-25T23:43:38Z","body":"So auth:\r\n - [ ] Remove `x-api-project-id: user`\r\n - [ ] Remove `defaultProjectId` from backend code, I'll save it in the browser\r\n - Authorize request as \"the user\" when sent:\r\n    - [ ] `?token=[jwt]`\r\n    - [ ] `Bearer: [jwt]`\r\n    - [ ] `Basic: x-api-bearer:[jwt]`\r\n - Authorize request as \"a project\" when sent:\r\n    - [ ] `?token=[jwt]&projectId=[projectId]`\r\n    - [ ] `Bearer: [jwt]` + `x-api-project-id: [projectId]`\r\n    - [ ] `Basic: x-api-bearer=[projectId]:[jwt]`\r\n - Authorize request as whatever accountId the key is for when sent:\r\n    - [ ] `Basic: [api accesskey]:[secretkey]`\r\n\r\nStill need to figure out the default project creation and how that interacts with `access.mode=restricted` and the user isn't on the whitelist.  Maybe we can just get rid of \"[username's] default\" and let the user make their own project if they want one.  If the last project the user has access to is deactivated, then shouldn't they just not have be authorized to login anymore?"}}