The tutorial seems to be missing a single file. If you open chrome_ex_oauth.html , you will see that it is trying to download 3 js files:
<script type="text/javascript" src="chrome_ex_oauthsimple.js"></script> <script type="text/javascript" src="chrome_ex_oauth.js"></script> <script type="text/javascript" src="onload.js"></script>
The onload.js file onload.js not provided. OAuth Contacts Example provides such a file with the following contents:
window.onload = function() { ChromeExOAuth.initCallbackPage(); }
After adding this file, it works fine.
Metoule
source share