{"action":"created","issue":{"url":"https://api.github.com/repos/edx/edx-platform/issues/11449","repository_url":"https://api.github.com/repos/edx/edx-platform","labels_url":"https://api.github.com/repos/edx/edx-platform/issues/11449/labels{/name}","comments_url":"https://api.github.com/repos/edx/edx-platform/issues/11449/comments","events_url":"https://api.github.com/repos/edx/edx-platform/issues/11449/events","html_url":"https://github.com/edx/edx-platform/pull/11449","id":131739936,"number":11449,"title":"Provide refresh tokens for mobile clients.","user":{"login":"jcdyer","id":77486,"avatar_url":"https://avatars.githubusercontent.com/u/77486?v=3","gravatar_id":"","url":"https://api.github.com/users/jcdyer","html_url":"https://github.com/jcdyer","followers_url":"https://api.github.com/users/jcdyer/followers","following_url":"https://api.github.com/users/jcdyer/following{/other_user}","gists_url":"https://api.github.com/users/jcdyer/gists{/gist_id}","starred_url":"https://api.github.com/users/jcdyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcdyer/subscriptions","organizations_url":"https://api.github.com/users/jcdyer/orgs","repos_url":"https://api.github.com/users/jcdyer/repos","events_url":"https://api.github.com/users/jcdyer/events{/privacy}","received_events_url":"https://api.github.com/users/jcdyer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2016-02-05T19:53:20Z","updated_at":"2016-03-04T16:16:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/edx/edx-platform/pulls/11449","html_url":"https://github.com/edx/edx-platform/pull/11449","diff_url":"https://github.com/edx/edx-platform/pull/11449.diff","patch_url":"https://github.com/edx/edx-platform/pull/11449.patch"},"body":"@nasthagiri @sanfordstudent \r\n\r\nFYI: @aleffert This adds refresh tokens for mobile apps, and should support third party auth (please test that in mobile apps)\r\n\r\nFYI: @clintonb There are a few follow-up tickets that may be needed to support django-oauth-toolkit in IDAs.  Those are currently named MA-2122 MA-2123, and MA-2124.  That work will build on this ticket, but may be handled in ECOM, so take a look at what's been done so far, and feel free to ask questions / make suggestions.\r\n\r\nFYI: @jibsheet Please help me ensure that necessary steps to getting this merged/deployed are documented on this PR.\r\n\r\n[MA-2000](https://openedx.atlassian.net/browse/MA-2000/)\r\n\r\nTODO:\r\n\r\n* Verify that apps with client IDs provided by django-oauth2-provider (old style) continue to get the expected responses from API calls\r\n   * Getting an access token by submitting user credentials (username/password)\r\n   * Exchanging a third-party token for an edx access_token\r\n   * Authorizing API calls with the acquired access_token\r\n* Verify that apps with client IDs provided by django-oauth-toolkit (new style) work as they always have (as above), but also get a refresh_token when they get an access token (whether via login or 3rd party auth), and that they can submit the refresh token to get a new access token (which will come with a new refresh token).\r\n"},"comment":{"url":"https://api.github.com/repos/edx/edx-platform/issues/comments/192340441","html_url":"https://github.com/edx/edx-platform/pull/11449#issuecomment-192340441","issue_url":"https://api.github.com/repos/edx/edx-platform/issues/11449","id":192340441,"user":{"login":"jcdyer","id":77486,"avatar_url":"https://avatars.githubusercontent.com/u/77486?v=3","gravatar_id":"","url":"https://api.github.com/users/jcdyer","html_url":"https://github.com/jcdyer","followers_url":"https://api.github.com/users/jcdyer/followers","following_url":"https://api.github.com/users/jcdyer/following{/other_user}","gists_url":"https://api.github.com/users/jcdyer/gists{/gist_id}","starred_url":"https://api.github.com/users/jcdyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcdyer/subscriptions","organizations_url":"https://api.github.com/users/jcdyer/orgs","repos_url":"https://api.github.com/users/jcdyer/repos","events_url":"https://api.github.com/users/jcdyer/events{/privacy}","received_events_url":"https://api.github.com/users/jcdyer/received_events","type":"User","site_admin":false},"created_at":"2016-03-04T16:16:49Z","updated_at":"2016-03-04T16:16:49Z","body":"jenkins run lettuce"}}