tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jsdelf...@apache.org
Subject svn commit: r958437 - in /tuscany/sca-cpp/trunk/modules/openid: htdocs/index.html htdocs/login.html htdocs/login/ htdocs/protected/index.html htdocs/protected/logout.html openid-conf
Date Mon, 28 Jun 2010 01:40:43 GMT
Author: jsdelfino
Date: Mon Jun 28 01:40:42 2010
New Revision: 958437

URL: http://svn.apache.org/viewvc?rev=958437&view=rev
Log:
Add a sign out page and links to more OpenID providers.

Added:
    tuscany/sca-cpp/trunk/modules/openid/htdocs/login.html
    tuscany/sca-cpp/trunk/modules/openid/htdocs/protected/logout.html
      - copied, changed from r958391, tuscany/sca-cpp/trunk/modules/openid/htdocs/login/index.html
Removed:
    tuscany/sca-cpp/trunk/modules/openid/htdocs/login/
Modified:
    tuscany/sca-cpp/trunk/modules/openid/htdocs/index.html
    tuscany/sca-cpp/trunk/modules/openid/htdocs/protected/index.html
    tuscany/sca-cpp/trunk/modules/openid/openid-conf

Modified: tuscany/sca-cpp/trunk/modules/openid/htdocs/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/openid/htdocs/index.html?rev=958437&r1=958436&r2=958437&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/openid/htdocs/index.html (original)
+++ tuscany/sca-cpp/trunk/modules/openid/htdocs/index.html Mon Jun 28 01:40:42 2010
@@ -17,5 +17,8 @@
    under the License.
 -->
 
-<html><body><h1>Unprotected area - It works!</h1></body></html>
-
+<html><body>
+<h1>Unprotected area - It works!</h1>
+<p><a href="protected">Protected area</a></p>
+<p><a href="login.html">Sign in</a></p>
+</body></html>

Added: tuscany/sca-cpp/trunk/modules/openid/htdocs/login.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/openid/htdocs/login.html?rev=958437&view=auto
==============================================================================
--- tuscany/sca-cpp/trunk/modules/openid/htdocs/login.html (added)
+++ tuscany/sca-cpp/trunk/modules/openid/htdocs/login.html Mon Jun 28 01:40:42 2010
@@ -0,0 +1,62 @@
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+   
+     http://www.apache.org/licenses/LICENSE-2.0
+     
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License.
+-->
+
+<html><body>
+<h1>Sign in with an OpenID provider</h1>
+
+<form "googleSignin" action="/protected" method="GET">
+<input type="hidden" name="openid_identifier" value="https://www.google.com/accounts/o8/id"/>
+<input type="submit" value="Sign in with your Google account"/>
+</form>
+
+<form name="yahooSignin" action="/protected" method="GET">
+<input type="hidden" name="openid_identifier" value="https://me.yahoo.com/"/>
+<input type="submit" value="Sign in with your Yahoo account"/>
+
+</form>
+
+<form name="myOpenIDSignin" action="/protected" method="GET">
+<input type="hidden" name="openid_identifier" value="http://www.myopenid.com/xrds"/>
+<input type="submit" value="Sign in with your MyOpenID account"/>
+</form>
+
+<form name="verisignSignin" action="/protected" method="GET">
+<input type="hidden" name="openid_identifier" value="https://pip.verisignlabs.com/"/>
+<input type="submit" value="Sign in with your Verisign account"/>
+</form>
+
+<form name="googleAppsSignin" action="/protected" method="GET">
+<script type="text/javascript">
+function initOpenIDIdentifier() {
+    document.googleAppsSignin.openid_identifier.value = 'https://www.google.com/accounts/o8/site-xrds?ns=2&hd='
+ document.googleAppsSignin.domain.value;
+    return true;
+}
+</script>
+<!-- Enter your Google apps domain, e.g example.com -->
+<input type="text" size="20" name="domain" value="example.com"/><br/>
+<input type="hidden" size=50 name="openid_identifier" value=""/>
+<input type="submit" onclick="initOpenIDIdentifier()" value="Sign in with a Google Apps
domain"/>
+</form>
+
+<form name="xrdsEndpointSignin" action="/protected" method="GET">
+<!-- Enter your OpenID XRDS endpoint, e.g. https://www.google.com/accounts/o8/id -->
+<input type="text" size="50" name="openid_identifier" value="https://www.google.com/accounts/o8/id"/><br/>
+<input type="submit" value="Sign in with an OpenID XRDS endpoint"/>
+</form>
+</body></html>

Modified: tuscany/sca-cpp/trunk/modules/openid/htdocs/protected/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/openid/htdocs/protected/index.html?rev=958437&r1=958436&r2=958437&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/openid/htdocs/protected/index.html (original)
+++ tuscany/sca-cpp/trunk/modules/openid/htdocs/protected/index.html Mon Jun 28 01:40:42 2010
@@ -17,5 +17,8 @@
    under the License.
 -->
 
-<html><body><h1>Protected area - It works!</h1></body></html>
-
+<html><body>
+<h1>Protected area - It works!</h1>
+<p><a href="hello">Hello component</a></p>
+<p><a href="logout.html">Sign out</a></p>
+</body></html>

Copied: tuscany/sca-cpp/trunk/modules/openid/htdocs/protected/logout.html (from r958391, tuscany/sca-cpp/trunk/modules/openid/htdocs/login/index.html)
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/openid/htdocs/protected/logout.html?p2=tuscany/sca-cpp/trunk/modules/openid/htdocs/protected/logout.html&p1=tuscany/sca-cpp/trunk/modules/openid/htdocs/login/index.html&r1=958391&r2=958437&rev=958437&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/openid/htdocs/login/index.html (original)
+++ tuscany/sca-cpp/trunk/modules/openid/htdocs/protected/logout.html Mon Jun 28 01:40:42
2010
@@ -18,21 +18,17 @@
 -->
 
 <html><body>
-<h1>Sign in using an OpenID provider</h1>
-<form action="/protected" method="GET">
-<input type="hidden" name="openid_identifier" value="https://www.google.com/accounts/o8/id"/>
-<input type="submit" value="Sign in with your Google account"/>
-</form>
-<form action="/protected" method="GET">
-<input type="hidden" name="openid_identifier" value="https://me.yahoo.com/"/>
-<input type="submit" value="Sign in with your Yahoo account"/>
-</form>
-<form action="/protected" method="GET">
-<input type="hidden" name="openid_identifier" value="https://me.myopenid.com"/>
-<input type="submit" value="Sign in with your MyOpenID account"/>
-</form>
-<form action="/protected" method="GET">
-<input type="hidden" name="openid_identifier" value="https://pip.verisignlabs.com/"/>
-<input type="submit" value="Sign in with your Verisign account"/>
+<h1>Sign out</h1>
+
+<form "Signout" action="/" method="GET">
+<script type="text/javascript">
+function deleteOpenIDSessionCookie() {
+    alert(document.cookie);
+    document.cookie = 'open_id_session_id=;expires=' + new Date(1970,01,01).toGMTString();
+    alert(document.cookie);
+    return true;
+}
+</script>
+<input type="submit" onclick="deleteOpenIDSessionCookie()" value="Sign out"/>
 </form>
 </body></html>

Modified: tuscany/sca-cpp/trunk/modules/openid/openid-conf
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/openid/openid-conf?rev=958437&r1=958436&r2=958437&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/openid/openid-conf (original)
+++ tuscany/sca-cpp/trunk/modules/openid/openid-conf Mon Jun 28 01:40:42 2010
@@ -30,7 +30,7 @@ LoadModule authopenid_module  $openid_pr
 
 <Location /protected>
 AuthOpenIDEnabled On
-AuthOpenIDLoginPage /login
+AuthOpenIDLoginPage /login.html
 AuthOpenIDAXAdd EMAIL http://axschema.org/contact/email
 </Location>
 



Mime
View raw message