{"action":"created","issue":{"url":"https://api.github.com/repos/dcos/dcos-cli/issues/845","repository_url":"https://api.github.com/repos/dcos/dcos-cli","labels_url":"https://api.github.com/repos/dcos/dcos-cli/issues/845/labels{/name}","comments_url":"https://api.github.com/repos/dcos/dcos-cli/issues/845/comments","events_url":"https://api.github.com/repos/dcos/dcos-cli/issues/845/events","html_url":"https://github.com/dcos/dcos-cli/issues/845","id":191896806,"number":845,"title":"dcos cli login for CI","user":{"login":"andreimc","id":1446134,"avatar_url":"https://avatars.githubusercontent.com/u/1446134?v=3","gravatar_id":"","url":"https://api.github.com/users/andreimc","html_url":"https://github.com/andreimc","followers_url":"https://api.github.com/users/andreimc/followers","following_url":"https://api.github.com/users/andreimc/following{/other_user}","gists_url":"https://api.github.com/users/andreimc/gists{/gist_id}","starred_url":"https://api.github.com/users/andreimc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreimc/subscriptions","organizations_url":"https://api.github.com/users/andreimc/orgs","repos_url":"https://api.github.com/users/andreimc/repos","events_url":"https://api.github.com/users/andreimc/events{/privacy}","received_events_url":"https://api.github.com/users/andreimc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-28T00:18:57Z","updated_at":"2016-11-30T01:12:42Z","closed_at":null,"body":"Please answer the following questions before submitting your issue. Thanks!\r\n\r\n### What version of DC/OS + DC/OS CLI are you using (`dcos --version`)?\r\nIf DC/OS CLI version < 0.4.5, DC/OS version can be found at `http://dcos_url/dcos-metada/dcos-version.json`\r\n\r\ndcoscli.version=0.4.14\r\ndcos.version=1.8.6\r\ndcos.commit=cfccfbf84bbba30e695ae4887b65db44ff216b1d\r\ndcos.bootstrap-id=405172d16eaff8798d6b090dac99b51a8a9004d7\r\n\r\n### What operating system and version are you using?\r\n\r\ndebian/amd64\r\n\r\n\r\nMy problem is that we use our CI to perform deployments and the DCOS token from oAuth expires after 5 days.\r\n\r\nHow can we login from a non-interactive environment ? With oauth ?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dcos/dcos-cli/issues/comments/263752730","html_url":"https://github.com/dcos/dcos-cli/issues/845#issuecomment-263752730","issue_url":"https://api.github.com/repos/dcos/dcos-cli/issues/845","id":263752730,"user":{"login":"justinclayton","id":265701,"avatar_url":"https://avatars.githubusercontent.com/u/265701?v=3","gravatar_id":"","url":"https://api.github.com/users/justinclayton","html_url":"https://github.com/justinclayton","followers_url":"https://api.github.com/users/justinclayton/followers","following_url":"https://api.github.com/users/justinclayton/following{/other_user}","gists_url":"https://api.github.com/users/justinclayton/gists{/gist_id}","starred_url":"https://api.github.com/users/justinclayton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinclayton/subscriptions","organizations_url":"https://api.github.com/users/justinclayton/orgs","repos_url":"https://api.github.com/users/justinclayton/repos","events_url":"https://api.github.com/users/justinclayton/events{/privacy}","received_events_url":"https://api.github.com/users/justinclayton/received_events","type":"User","site_admin":false},"created_at":"2016-11-30T01:12:42Z","updated_at":"2016-11-30T01:12:42Z","body":"Looks like the code (for the CLI anyways) doesn't currently support anything other than username/password pair: https://github.com/dcos/dcos-cli/blob/3b3eff70cae37c5f47a78ece64c8aa80742e2904/dcos/http.py#L343-L361\r\n\r\nHowever, you can use the auth API directly: https://dcos.io/docs/1.8/administration/id-and-access-mgt/auth-api/"}}
{"actor":{"display_login":"justinclayton"}}