summaryrefslogtreecommitdiffstats
path: root/htdocs/index.html
diff options
context:
space:
mode:
authorNaveen Bobbili <nbobbili@amazon.com>2018-12-05 14:41:43 -0800
committerNaveen Bobbili <nbobbili@amazon.com>2018-12-06 14:31:57 -0800
commit4082dd6e354e68a90d1e50953c34cfa36b3d1519 (patch)
tree5d55434015158137b210f5f6759ed93b6e40c76d /htdocs/index.html
parent3c87e5c620dc1273a900cf3a607f0bdbc67f34a5 (diff)
Code Base Linking based authentication implementationguppy_6.99.4guppy_6.99.3guppy/6.99.4guppy/6.99.36.99.46.99.3ces2019
for Alexa Voice Agent. Using the VSHL Tester HTML5 app 1. Click Enumerate Agents will show Login With Amazon button if the low level Alexa voice agent is not authenticated. 2. Clicking Login with Amazon button will start the login process. A CBL link will be displayed using which the user can authenticate using Amazon account. 3. The app will automatically fetch the access token needed by the low-level Alexa Voice Agent and pass it to it using the setAuthToken exposed by the agent. Change-Id: I327e9b77a2f296a268530df00804cbef60cf0c3c Signed-off-by: Naveen Bobbili <nbobbili@amazon.com>
Diffstat (limited to 'htdocs/index.html')
-rw-r--r--htdocs/index.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/htdocs/index.html b/htdocs/index.html
index 0480c35..bf5f840 100644
--- a/htdocs/index.html
+++ b/htdocs/index.html
@@ -4,6 +4,7 @@
<title>VSHL API Test</title>
<link rel="stylesheet" href="binding.css">
<script type="text/javascript" src="AFB.js"></script>
+ <script type="text/javascript" src="amazon.js"></script>
<script type="text/javascript" src="binding.js"></script>
</head>
@@ -69,6 +70,25 @@
</footer>
</dialog>
+ <dialog id="login-with-amazon">
+ <h3 class="dialogheader">Login with Amazon !!</h3>
+ <div id="login-area">
+ <div>
+ Alexa VA URL: <input type="text" id="alexa-va-address" value="localhost:1111"> <br><br>
+ Client ID : <input type="text" id="client-id"> <br><br>
+ Product ID : <input type="text" id="product-id"> <br><br>
+ To generate client and product ID, please register a new AVS product for
+ <i><b>Other devices and platforms</b></i> using instructions in
+ <a href="https://developer.amazon.com/docs/alexa-voice-service/register-a-product.html" target="_blank">this </a>
+ link.<br><br>
+ </div>
+ <footer id ="login-with-amazon-footer">
+ <button id="submit-btn" type="button" style="margin: 10px">Login</button>
+ <button id="cancel-btn" type="button" style="margin: 10px">Cancel</button>
+ </footer>
+ </div>
+ </dialog>
+
<div id="top" class="row">
<div id='actions' class="col1">
<div>