Skip to content
Snippets Groups Projects
Commit 89d8786e authored by Lloyd Hilaiel's avatar Lloyd Hilaiel
Browse files

plug the RP into authority

parent d33df7a3
No related branches found
No related tags found
No related merge requests found
// this is the file that the RP includes to shim in the
// navigator.id.getVerifiedEmail() function
if (!navigator.id) { navigator.id = {} }
if (!navigator.id.getVerifiedEmail) {
navigator.id.getVerifiedEmail = function() {
alert("getVerifiedEmail invoked");
};
}
......@@ -7,15 +7,15 @@ computer usage for little ones.
</p>
<p>
To get started, <span id="login">log in</span>.
To get started, <a href="#" id="login">log in</a>.
</p>
</body>
<script src="jquery-min.js"></script>
<script src="http://identity.mozilla.org/jsapi/include.js"></script>
<script src="../authority/jsapi/include.js"></script>
<script>
$(document).ready(function() {
$("#button").click(function() {
$("#login").click(function() {
navigator.id.getVerifiedEmail(function(assertion) {
// assertion at this point is a blob that looks like this:
//
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment