Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(899)

Side by Side Diff: remoting/webapp/me2mom/choice.html

Issue 7046012: Basic OAuth2 support using the native app flow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <!-- 2 <!--
3 Copyright (c) 2011 The Chromium Authors. All rights reserved. 3 Copyright (c) 2011 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 7
8 <html> 8 <html>
9 9
10 <head> 10 <head>
11 <link rel="stylesheet" type="text/css" href="main.css" /> 11 <link rel="stylesheet" type="text/css" href="main.css" />
12 <script type="text/javascript" src="remoting.js"></script> 12 <script type="text/javascript" src="remoting.js"></script>
13 <title>Select Role</title> 13 <title>Select Role</title>
14 </head> 14 </head>
15 15
16 <body onload="init();"> 16 <body onload="init();">
17 17
18 <!-- Auth panel --> 18 <!-- Auth panel -->
19 <div id="auth_panel"> 19 <div id="auth_panel">
20 Chromoting OAuth1 Token: <span id="oauth1_status"></span> 20 OAuth2 Token: <span id="oauth2_status"></span>
21 <button onclick="authorizeOAuth1();">Authorize</button> 21 <button onclick="remoting.oauth2.openOAuth2Window();"
22 <button onclick="clearOAuth1();">Clear</button > 22 id="oauth2_code_button">
23 <br /> 23 Open OAuth2 Window
24 XMPP Token: <span id="xmpp_status"></span> 24 </button>
25 <button onclick="clearXmpp();" id="xmpp_clear" style="display:none;"> 25 <button onclick="clearOAuth2();" id="oauth2_clear_button">
26 Clear 26 Clear
27 </button> 27 </button>
28 <form id='xmpp_form' action="" 28 <form id='oauth2_form' action=""
29 onsubmit="authorizeXmpp(this); return false;"> 29 onsubmit="authorizeOAuth2(this['oauth2_code'].value); return false;"
30 <label for="xmpp_username">Email:</label> 30 style="display:none">
31 <input type="text" name="xmpp_username" id="xmpp_username" /> 31 <label for="auth2_code">OAuth2 Code (from window):</label>
32 <label for="xmpp_password">App-specific Password:</label> 32 <input type="text" name="oauth2_code" id="oauth2_code" />
33 <input type="password" name="xmpp_password" id="xmpp_password" />
34 <div id="xmpp_captcha" style="display:none;">
35 <img style="display:block;" id="xmpp_captcha_img" />
36 <input type="hidden" name="xmpp_captcha_token" />
37 <input type="text" name="xmpp_captcha_result" />
38 </div>
39 <input type="submit"/> 33 <input type="submit"/>
40 </form> 34 </form>
41 <span id="xmpp_last_error" style="display:none"></span> 35 <div id="xmpp_div">
42 <iframe id="xmpp_error" style="display:none"> 36 XMPP Token: <span id="xmpp_status"></span>
43 <p> No iframe support 37 <button onclick="clearXmpp();" id="xmpp_clear" style="display:none;">
44 </iframe> 38 Clear
39 </button>
40
41 <form id='xmpp_form' action=""
42 onsubmit="authorizeXmpp(this); return false;">
43 <label for="xmpp_username">Email:</label>
44 <input type="text" name="xmpp_username" id="xmpp_username" />
45 <label for="xmpp_password">App-specific Password:</label>
46 <input type="password" name="xmpp_password" id="xmpp_password" />
47 <div id="xmpp_captcha" style="display:none;">
48 <img style="display:block;" id="xmpp_captcha_img" />
49 <input type="hidden" name="xmpp_captcha_token" />
50 <input type="text" name="xmpp_captcha_result" />
51 </div>
52 <input type="submit"/>
53 </form>
54 <span id="xmpp_last_error" style="display:none"></span>
55 <iframe id="xmpp_error" style="display:none">
56 <p> No iframe support
57 </iframe>
58 </div>
45 </div> 59 </div>
46 60
47 <!-- Host UI --> 61 <!-- Host UI -->
48 <div id="host"> 62 <div id="host">
49 <div id="plugin_wrapper"> 63 <div id="plugin_wrapper">
50 </div> 64 </div>
51 65
52 <div id="unshared"> 66 <div id="unshared">
53 <p class="message"> 67 <p class="message">
54 Your desktop is currently unshared. 68 Your desktop is currently unshared.
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 onclick="setClientMode('unconnected');"> 173 onclick="setClientMode('unconnected');">
160 OK 174 OK
161 </button> 175 </button>
162 </div> 176 </div>
163 177
164 </div> 178 </div>
165 179
166 </body> 180 </body>
167 181
168 </html> 182 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698