diff options
author | Patrick Uiterwijk <puiterwijk@redhat.com> | 2014-11-13 10:18:05 +0100 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2014-11-14 13:06:27 -0500 |
commit | 943158d19f879eb6ad515edeb59017671e4252c5 (patch) | |
tree | 17afd88f27a156b95224b666d4270be2ae66890d /templates/persona/signin_result.html | |
parent | d4f4bc7b1ed80887534698825fc93ff3cf68dfe7 (diff) | |
download | ipsilon-943158d19f879eb6ad515edeb59017671e4252c5.tar.gz ipsilon-943158d19f879eb6ad515edeb59017671e4252c5.tar.xz ipsilon-943158d19f879eb6ad515edeb59017671e4252c5.zip |
Add support for Persona Identity Provider
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'templates/persona/signin_result.html')
-rw-r--r-- | templates/persona/signin_result.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/templates/persona/signin_result.html b/templates/persona/signin_result.html new file mode 100644 index 0000000..cda130d --- /dev/null +++ b/templates/persona/signin_result.html @@ -0,0 +1,22 @@ +{% extends "master.html" %} +{% block main %} +<div class="col-sm-12"> + <div id="welcome"> + <p>This page is used internally</p> + </div> +</div> + +<script type="text/javascript" src="https://login.persona.org/authentication_api.js"></script> +<script type="text/javascript"> + var loggedin = {{ loggedin|lower }}; + + if(loggedin) + { + navigator.id.beginAuthentication(function(email) { + navigator.id.completeAuthentication(); + }); + } else { + navigator.id.raiseAuthenticationFailure('User cancelled signon'); + } +</script> +{% endblock %} |