summaryrefslogtreecommitdiffstats
path: root/templates/persona/signin_result.html
diff options
context:
space:
mode:
authorPatrick Uiterwijk <puiterwijk@redhat.com>2014-11-13 10:18:05 +0100
committerSimo Sorce <simo@redhat.com>2014-11-14 13:06:27 -0500
commit943158d19f879eb6ad515edeb59017671e4252c5 (patch)
tree17afd88f27a156b95224b666d4270be2ae66890d /templates/persona/signin_result.html
parentd4f4bc7b1ed80887534698825fc93ff3cf68dfe7 (diff)
downloadipsilon-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.html22
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 %}