Browser based OAuth

As a replacement for a user entering their username and password directly into a form in an app, switch to a browser where a user can authorize the app and return the access token to the app.