summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/modules/openid/htdocs
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2010-11-03 16:39:53 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2010-11-03 16:39:53 +0000
commit034b527d25626a4812fc696c3878744695c23a0b (patch)
tree5d7d9c3dfadba189d359f5ef4e12e135ad3a7317 /sca-cpp/trunk/modules/openid/htdocs
parentd63c8ad1885acb086a2947502a3beeded8f5dd05 (diff)
Improvements to OAuth and OpenID modules. Store client app in an environment variable. Add support for more OAuth providers. Fix a cookie parsing bug.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1030524 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--sca-cpp/trunk/modules/openid/htdocs/index.html11
-rw-r--r--sca-cpp/trunk/modules/openid/htdocs/public/index.html (renamed from sca-cpp/trunk/modules/openid/htdocs/unprotected/index.html)0
2 files changed, 7 insertions, 4 deletions
diff --git a/sca-cpp/trunk/modules/openid/htdocs/index.html b/sca-cpp/trunk/modules/openid/htdocs/index.html
index c2dfc791e6..cdc65a4e37 100644
--- a/sca-cpp/trunk/modules/openid/htdocs/index.html
+++ b/sca-cpp/trunk/modules/openid/htdocs/index.html
@@ -22,9 +22,10 @@
<script type="text/javascript" src="/js/ref.js"></script>
<script type="text/javascript">
var protected = component("Protected");
-var userInfo = reference(protected, "userInfo");
-var user = userInfo.apply("getuser");
-var email = userInfo.apply("getemail");
+var userInfo = defun(reference(protected, "userInfo"), "getuser", "getemail", "getrealm");
+var user = userInfo.getuser();
+var email = userInfo.getemail();
+var realm = userInfo.getrealm();
</script>
</head>
<body>
@@ -32,12 +33,14 @@ var email = userInfo.apply("getemail");
<p>The following info is returned by a JSONRPC service:</p>
<div id="user"></div>
<div id="email"></div>
+<div id="realm"></div>
<script type="text/javascript">
document.getElementById('user').innerHTML="User: " + user;
document.getElementById('email').innerHTML="Email: " + email;
+document.getElementById('realm').innerHTML="Realm: " + realm;
</script>
<p><a href="info">User info</a></p>
<p><a href="login">Sign in</a></p>
<p><a href="logout">Sign out</a></p>
-<p><a href="unprotected">Unprotected area</a></p>
+<p><a href="public">Public area</a></p>
</body></html>
diff --git a/sca-cpp/trunk/modules/openid/htdocs/unprotected/index.html b/sca-cpp/trunk/modules/openid/htdocs/public/index.html
index af2cd7ca19..af2cd7ca19 100644
--- a/sca-cpp/trunk/modules/openid/htdocs/unprotected/index.html
+++ b/sca-cpp/trunk/modules/openid/htdocs/public/index.html