diff options
Diffstat (limited to '')
-rw-r--r-- | sca-cpp/trunk/modules/openid/htdocs/unprotected/index.html (renamed from sca-cpp/trunk/modules/openid/htdocs/protected/index.html) | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/sca-cpp/trunk/modules/openid/htdocs/protected/index.html b/sca-cpp/trunk/modules/openid/htdocs/unprotected/index.html index 4c7bc4f5a3..af2cd7ca19 100644 --- a/sca-cpp/trunk/modules/openid/htdocs/protected/index.html +++ b/sca-cpp/trunk/modules/openid/htdocs/unprotected/index.html @@ -18,24 +18,10 @@ --> <html> -<head> -<script type="text/javascript" src="/js/tuscany-ref.js"></script> -<script language="JavaScript"> - var component = new tuscany.sca.Component("Protected"); - var userInfo = new tuscany.sca.Reference("userInfo"); - var user = userInfo.apply("getuser"); - var email = userInfo.apply("getemail"); -</script> -</head> <body> -<h1>Protected area - It works!</h1> -<p>The following info is returned by a JSONRPC service:</p> -<div id="user"></div> -<div id="email"></div> -<p><a href="/protected/info">User info</a></p> -<p><a href="/protected/logout">Sign out</a></p> -<script language="JavaScript"> - document.getElementById('user').innerHTML="User: " + user; - document.getElementById('email').innerHTML="Email: " + email; -</script> +<h1>Unprotected area - It works!</h1> +<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="/">Protected area</a></p> </body></html> |