Author: prabath
Date: Wed Feb 27 22:00:26 2008
New Revision: 14278

Log:

modified sample to display OpenID

Modified:
   
trunk/solutions/identity/modules/samples/servlet-filter/src/main/webapp/openidinfocardloggedin.jsp
   
trunk/solutions/identity/modules/samples/servlet-filter/src/main/webapp/openidloggedin.jsp
   
trunk/solutions/identity/modules/samples/servlet-filter/src/main/webapp/openidsxiploggedin.jsp

Modified: 
trunk/solutions/identity/modules/samples/servlet-filter/src/main/webapp/openidinfocardloggedin.jsp
==============================================================================
--- 
trunk/solutions/identity/modules/samples/servlet-filter/src/main/webapp/openidinfocardloggedin.jsp
  (original)
+++ 
trunk/solutions/identity/modules/samples/servlet-filter/src/main/webapp/openidinfocardloggedin.jsp
  Wed Feb 27 22:00:26 2008
@@ -22,7 +22,7 @@
                <OBJECT type="application/x-informationCard" name="xmlToken">
                     <PARAM Name="tokenType" 
Value="http://specs.openid.net/auth/2.0";>
                     <PARAM Name="requiredClaims" 
Value="http://schema.openid.net/2007/05/claims/identifier 
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname 
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress  
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/country";>
-                    <PARAM Name="optionalClaims" 
value="http://schema.openid.net/2007/05/claims/dob 
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nickname 
http://schema.openid.net/2007/05/claims/gender 
http://schema.openid.net/2007/05/claims/language 
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/postalcode 
http://schema.openid.net/2007/05/claims/timezone";>              
+                    <PARAM Name="optionalClaims" 
value="http://schema.openid.net/2007/05/claims/dob 
http://schema.openid.net/2007/05/claims/gender 
http://schema.openid.net/2007/05/claims/language 
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/postalcode 
http://schema.openid.net/2007/05/claims/timezone";>              
             </OBJECT>              
 
   </form>
@@ -52,6 +52,14 @@
                                        <strong>Logged in       
Successfully...!</strong><br />
                                </td>
                        </tr>
+
+                   <% if (request.getAttribute("openid_identifier") != null) { 
%>
+                       <tr>
+                               <td>Your OpenID:</td>
+                               
<td><%=request.getAttribute("openid_identifier")%></td>
+                       </tr>
+                       <%}%>
+
                        <% if (request.getAttribute("nickname") != null) { %>
                        <tr>
                                <td>Nick Name:</td>

Modified: 
trunk/solutions/identity/modules/samples/servlet-filter/src/main/webapp/openidloggedin.jsp
==============================================================================
--- 
trunk/solutions/identity/modules/samples/servlet-filter/src/main/webapp/openidloggedin.jsp
  (original)
+++ 
trunk/solutions/identity/modules/samples/servlet-filter/src/main/webapp/openidloggedin.jsp
  Wed Feb 27 22:00:26 2008
@@ -27,6 +27,12 @@
                                        <strong>Logged in       
Successfully...!</strong><br />
                                </td>
                        </tr>
+                   <% if (request.getAttribute("openid_identifier") != null) { 
%>
+                       <tr>
+                               <td>Your OpenID:</td>
+                               
<td><%=request.getAttribute("openid_identifier")%></td>
+                       </tr>
+                       <%}%>
                        <% if (request.getAttribute("nickname") != null) { %>
                        <tr>
                                <td>Nick Name:</td>

Modified: 
trunk/solutions/identity/modules/samples/servlet-filter/src/main/webapp/openidsxiploggedin.jsp
==============================================================================
--- 
trunk/solutions/identity/modules/samples/servlet-filter/src/main/webapp/openidsxiploggedin.jsp
      (original)
+++ 
trunk/solutions/identity/modules/samples/servlet-filter/src/main/webapp/openidsxiploggedin.jsp
      Wed Feb 27 22:00:26 2008
@@ -52,6 +52,14 @@
                                        <strong>Logged in       
Successfully...!</strong><br />
                                </td>
                        </tr>
+
+                   <% if (request.getAttribute("openid_identifier") != null) { 
%>
+                       <tr>
+                               <td>Your OpenID:</td>
+                               
<td><%=request.getAttribute("openid_identifier")%></td>
+                       </tr>
+                       <%}%>
+
                        <% if (request.getAttribute("nickname") != null) { %>
                        <tr>
                                <td>Nick Name:</td>

_______________________________________________
Identity-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/identity-dev

Reply via email to