Refactor doRedirect to expose access code.
commit2e2b93160875d3fdb9f17b84165239111640df69
authorjamiewalch <jamiewalch@chromium.org>
Thu, 11 Dec 2014 01:29:21 +0000 (10 17:29 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 11 Dec 2014 01:29:58 +0000 (11 01:29 +0000)
tree9865ca26182a369a974bf2b8f1a71a89b435b90f
parent9372a79176c08fe3dd81d5b6ecde7e4186eb4e18
Refactor doRedirect to expose access code.

This provides a way to get an access code from the JS console that can be
used with the start_host command.

It also simplifies the flow a bit, removing the need to store the XSRF token
in local storage (previously this was needed because doAuthRedirect changed
window.location).

Review URL: https://codereview.chromium.org/792863003

Cr-Commit-Position: refs/heads/master@{#307826}
remoting/webapp/crd/js/oauth2.js