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

Side by Side Diff: remoting/client/appengine/hostlist.html

Issue 7054029: Add in support for connecting with just the OAuth2 token. Default to OAuth2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address Jamie's comments 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
« no previous file with comments | « remoting/client/appengine/chromoting_session.html ('k') | remoting/client/appengine/main.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!-- 1 <!--
2 Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be 3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file. 4 found in the LICENSE file.
5 --> 5 -->
6 6
7 <html> 7 <html>
8 <head> 8 <head>
9 <script type="text/javascript" src="static_files/base.js"></script> 9 <script type="text/javascript" src="static_files/base.js"></script>
10 <script type="text/javascript" src="static_files/client.js"></script> 10 <script type="text/javascript" src="static_files/client.js"></script>
11 <link rel="stylesheet" type="text/css" href="static_files/main.css" /> 11 <link rel="stylesheet" type="text/css" href="static_files/main.css" />
12 <title>Remote Access Host List</title> 12 <title>Remote Access Host List</title>
13 </head> 13 </head>
14 <body onload="init();"> 14 <body onload="init();">
15 <div class="header"> 15 <div class="header">
16 </div> 16 </div>
17 <div id="main-content"> 17 <div id="main-content">
18 <div id="navbar-container"> 18 <div id="navbar-container">
19 <h1 id="settings-title">Chromoting</h1> 19 <h1 id="settings-title">Chromoting</h1>
20 <ul id="navbar"> 20 <ul id="navbar">
21 </ul> 21 </ul>
22 </div> 22 </div>
23 <div id="mainview"> 23 <div id="mainview">
24 <div id="mainview-content"> 24 <div id="mainview-content">
25 <div class="page"> 25 <div class="page">
26 <section> 26 <section>
27 <h3>Http Xmpp Proxy</h3> 27 <h3>Http Xmpp Proxy Config </h3>
28 <input type="text" id="http_xmpp_proxy" 28 <div>
29 value="https://chromoting-httpxmpp-dev.corp.google.com" 29 <table>
30 size="50" /> 30 <tr>
31 <td align="right">
32 <label for="clientlogin_proxy">Client Login Proxy</label>
33 </td>
34 <td><input type="text" name="clientlogin_proxy" id="clientlo gin_proxy"
35 value="https://chromoting-httpxmpp-dev.corp.google.com"
36 size="60" />
37 </td>
38 </tr>
39 <tr>
40 <td align="right">
41 <label for="oauth2_proxy">OAuth2 Proxy</label>
42 </td>
43 <td><input type="text" name="oauth2_proxy" id="oauth2_proxy"
44 value="https://chromoting-httpxmpp-oauth2-dev.corp.google. com"
45 size="60" />
46 </td>
47 </tr>
48 </table>
49 <div>
50 <input type="radio" name="token_type" id="use_oauth2"
51 value="oauth2" checked>
52 <label for="use_oauth2">Use OAuth2</label>
53 </input>
54 <input type="radio" name="token_type" id="use_clientlogin"
55 value="clientlogin">
56 <label for="use_clientlogin">Use Client Login</label>
57 </input>
58 </div>
59 </div>
31 </section> 60 </section>
32 <section> 61 <section>
33 <h3>Host List</h3> 62 <h3>Host List</h3>
34 <div class="hostlist"> 63 <div class="hostlist">
35 <list id="hostlist-div"> 64 <list id="hostlist-div">
36 <p class='message'>Initializing...</p> 65 <p class='message'>Initializing...</p>
37 </list> 66 </list>
38 <div id="host-options"> 67 <div id="host-options">
39 <button class="float-left" onclick="populateHostList();"> 68 <button class="float-left" onclick="populateHostList();">
40 Reload Host List 69 Reload Host List
(...skipping 18 matching lines...) Expand all
59 {% else %} 88 {% else %}
60 <div class="error-msg">Token Not Authenticated</div> 89 <div class="error-msg">Token Not Authenticated</div>
61 <button id="subitem" 90 <button id="subitem"
62 onclick="authorizeOAuth2();"> 91 onclick="authorizeOAuth2();">
63 Authenticate Token 92 Authenticate Token
64 </button> 93 </button>
65 {% endif %} 94 {% endif %}
66 </div> 95 </div>
67 </section> 96 </section>
68 <section> 97 <section>
69 <h3>Xmpp Token</h3> 98 <h3>Client Login Token</h3>
70 <div> 99 <div>
71 {% ifnotequal xmpp_token None %} 100 {% ifnotequal clientlogin_token None %}
72 <div>Token Authenticated</div> 101 <div>Token Authenticated</div>
73 <button id="subitem" 102 <button id="subitem"
74 onclick="window.location='/auth/clear_xmpp_token'"> 103 onclick="window.location='/auth/clear_clientlogin_token'">
75 Clear Token 104 Clear Token
76 </button> 105 </button>
77 {% else %} 106 {% else %}
78 <div class="error-msg">Token Not Authenticated</div> 107 <div class="error-msg">Token Not Authenticated</div>
79 <button id="subitem" 108 <button id="subitem"
80 onclick="window.location='/auth/xmpp_auth'"> 109 onclick="window.location='/auth/clientlogin_auth'">
81 Authenticate Token 110 Authenticate Token
82 </button> 111 </button>
83 {% endifnotequal %} 112 {% endifnotequal %}
84 </div> 113 </div>
85 </section> 114 </section>
86 </div> 115 </div>
87 </div> 116 </div>
88 </div> 117 </div>
89 </div> 118 </div>
90 </body> 119 </body>
91 </html> 120 </html>
OLDNEW
« no previous file with comments | « remoting/client/appengine/chromoting_session.html ('k') | remoting/client/appengine/main.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698