Implements the OAuth.
An example is in oauth_test2.html