Author: prabath
Date: Tue Jan 8 10:46:16 2008
New Revision: 11986
Log:
OpenID related UIs
Added:
trunk/solutions/identity/modules/user-ui/src/main/webapp/jsp/openidauthorization.jsp
trunk/solutions/identity/modules/user-ui/src/main/webapp/jsp/openidinfocardlogin.jsp
trunk/solutions/identity/modules/user-ui/src/main/webapp/jsp/openidlogin.jsp
trunk/solutions/identity/modules/user-ui/src/main/webapp/jsp/openidregistration.jsp
trunk/solutions/identity/modules/user-ui/src/main/webapp/jsp/openiduserloggedin.jsp
Added:
trunk/solutions/identity/modules/user-ui/src/main/webapp/jsp/openidauthorization.jsp
==============================================================================
--- (empty file)
+++
trunk/solutions/identity/modules/user-ui/src/main/webapp/jsp/openidauthorization.jsp
Tue Jan 8 10:46:16 2008
@@ -0,0 +1,106 @@
+<%@ page session="true"%>
+<%@ page
+
import="java.util.List,org.openid4java.message.AuthSuccess,org.openid4java.server.InMemoryServerAssociationStore,org.openid4java.message.DirectError,org.openid4java.message.Message,org.openid4java.message.ParameterList,org.openid4java.discovery.Identifier,org.openid4java.discovery.DiscoveryInformation,org.openid4java.message.ax.FetchRequest,org.openid4java.message.ax.FetchResponse,org.openid4java.message.ax.AxMessage,org.openid4java.message.*,org.openid4java.OpenIDException,java.util.List,java.io.IOException,javax.servlet.http.HttpSession,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,org.openid4java.server.ServerManager,org.openid4java.consumer.InMemoryConsumerAssociationStore,org.openid4java.consumer.VerificationResult"%>
+<%@ taglib prefix="s" uri="/struts-tags"%>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+"http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+<title>WSO2 Identity Solution | Management Console</title>
+<link type="text/css" rel="stylesheet" href="css/styles.css" />
+</head>
+<body>
+
+<div class="page">
+<!-- START Header -->
+<s:include value="header.jsp" />
+<!-- END Header -->
+<%
+
+ ParameterList requestp = (ParameterList) session
+ .getAttribute("parameterlist");
+ String openidrealm = requestp.hasParameter("openid.realm") ? requestp
+ .getParameterValue("openid.realm")
+ : null;
+ String openidreturnto = requestp.hasParameter("openid.return_to") ?
requestp
+ .getParameterValue("openid.return_to")
+ : null;
+ String openidclaimedid = requestp.hasParameter("openid.claimed_id") ?
requestp
+ .getParameterValue("openid.claimed_id")
+ : null;
+ String openididentity = requestp.hasParameter("openid.identity") ?
requestp
+ .getParameterValue("openid.identity")
+ : null;
+ %>
+ <!-- START Content -->
+ <%
+ if (request.getParameter("action") == null) {
+ String site = (String) (openidrealm == null ? openidreturnto
+ : openidrealm);
+ %>
+
+<table cellpadding="0" cellspacing="0" border="0" style="width: 100%;">
+ <tr>
+ <td class="right-back"></td>
+ <td class="content" valign="top">
+ <table cellpadding="0" cellspacing="0" border="0" style="width:
100%;">
+ <tr>
+ <td>
+ <h1>WSO2 Identity Provider</h1>
+ </td>
+ <td align="right" valign="top"><img
+
src="images/wso2-identity-content-rounded.jpg" align="top" /></td>
+ </tr>
+ </table>
+
+ <table cellpadding="0" cellspacing="10" border="0"
class="login-header">
+ <tr>
+ <td>
+
+ <s:form action="/server?_action=complete"
theme="simple" method="POST">
+ <div class="errors"><s:actionerror />
<s:fielderror /></div>
+
+ <table>
+ <tr>
+ <td align="left">
+ Identity:
+ </td>
+ <td>
+ <%=openididentity%>
+ </td>
+ </tr>
+ <tr>
+ <td align="left" valign="top">
+ Password:
+ </td>
+ <td valign="top">
+ <s:password
name="password" label="Password" cssClass="text-box-normal" />
+ </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td><s:submit
value="Login" align="left" cssClass="button" /></td>
+ </tr>
+
+ </table>
+ </s:form>
+ </td>
+ </table>
+
+
+ <br/><br/><br/><br/>
+ </td>
+ </tr>
+</table>
+<%
+ } else // Logged in
+ {
+ session.setAttribute("authenticatedAndApproved", Boolean.TRUE);
+ response.sendRedirect("/server?_action=complete");
+ }
+%>
+</div>
+<!-- Include footer -->
+<s:include value="footer.jsp" />
+</body>
+</html>
\ No newline at end of file
Added:
trunk/solutions/identity/modules/user-ui/src/main/webapp/jsp/openidinfocardlogin.jsp
==============================================================================
--- (empty file)
+++
trunk/solutions/identity/modules/user-ui/src/main/webapp/jsp/openidinfocardlogin.jsp
Tue Jan 8 10:46:16 2008
@@ -0,0 +1,29 @@
+<%@ taglib prefix="s" uri="/struts-tags" %>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+"http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<title>WSO2 Identity Solution</title>
+<link type="text/css" rel="stylesheet" href="css/styles.css" />
+</head>
+<body>
+
+ <form name="frm" id="frm" method="post"
action="OpenIdInfoCardSubmit.action">
+ <input type="hidden" name="InfoCardSignin" value="Log in" /><br/>
+
+ <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/surname">
+ <param name="optionalClaims"
Value="http://axschema.org/namePerson/first
http://axschema.org/contact/phone/default
http://axschema.org/contact/postalAddress/home
http://axschema.org/contact/city/home
http://axschema.org/contact/postalCode/home
http://axschema.org/contact/country/home http://axschema.org/contact/web/blog">
+ </OBJECT>
+ </form>
+ <script language="JavaScript" type="text/JavaScript">
+ <!--
+ document.frm.submit();
+ -->
+ </script>
+
+</body>
+
+</html>
\ No newline at end of file
Added:
trunk/solutions/identity/modules/user-ui/src/main/webapp/jsp/openidlogin.jsp
==============================================================================
--- (empty file)
+++
trunk/solutions/identity/modules/user-ui/src/main/webapp/jsp/openidlogin.jsp
Tue Jan 8 10:46:16 2008
@@ -0,0 +1,73 @@
+<%@ taglib prefix="s" uri="/struts-tags"%>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+"http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+<title>WSO2 Identity Solution</title>
+<link type="text/css" rel="stylesheet" href="css/styles.css" />
+</head>
+<body>
+<!-- Include the header -->
+<s:include value="header.jsp" />
+
+<table cellpadding="0" cellspacing="0" border="0" style="width: 100%;">
+ <tr>
+ <td class="right-back"></td>
+ <td class="content" valign="top">
+ <table cellpadding="0" cellspacing="0" border="0" style="width:
100%;">
+ <tr>
+ <td>
+ <h1>WSO2 Identity Provider</h1>
+ </td>
+ <td align="right" valign="top"><img
+
src="images/wso2-identity-content-rounded.jpg" align="top" /></td>
+ </tr>
+ </table>
+
+ <br>
+ <table cellpadding="0" cellspacing="10" border="0"
+ class="login-header">
+
+ <tr>
+ <td valign="top" width="40%"><strong>Login with
you
+ OpenID url</strong> <s:form
action="OpenIdSubmit.action?returnUrl=https://localhost:12443/OpenIdCallback.action"
theme="simple"
+ method="POST">
+ <div class="errors"><s:actionerror />
<s:fielderror /></div>
+ <table cellpadding="0" cellspacing="2"
border="0">
+
+ <tr>
+ <td
valign="top">OpenID:</td>
+ <td valign="top"><input
class='openid-url' id='openIdUrl' name="openIdUrl" size='30' />
+ </td>
+ </tr>
+ <tr>
+ <td
valign="top"><s:submit value="Login" align="left"
+
cssClass="button" /></td>
+ <td/>
+ </tr>
+
+ </table>
+ </s:form></td>
+
+ <td><img src="images/line-sep.png" height="150"
width="5" /></td>
+ <td valign="top"><strong>Login with your OpenID
Information Card</strong><br/>
+ <div><a
href="https://localhost:12443/OpenIdInfoCardLogin.action"
+ title="Login with your
OpenID Information Card"><img
+
src="images/openid_infocard.png" align="left"
+ style="margin-right:
10px;" border="0" /></a></div>
+ </td>
+ </tr>
+
+ </table>
+
+
+ </td>
+ </tr>
+</table>
+
+<!-- Include footer -->
+<s:include value="footer.jsp" />
+
+</body>
+
+</html>
\ No newline at end of file
Added:
trunk/solutions/identity/modules/user-ui/src/main/webapp/jsp/openidregistration.jsp
==============================================================================
--- (empty file)
+++
trunk/solutions/identity/modules/user-ui/src/main/webapp/jsp/openidregistration.jsp
Tue Jan 8 10:46:16 2008
@@ -0,0 +1,80 @@
+<%@ taglib prefix="s" uri="/struts-tags"%>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+"http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+<title>WSO2 Identity Solution</title>
+<link type="text/css" rel="stylesheet" href="css/styles.css" />
+</head>
+<body>
+<!-- Include the header -->
+<s:include value="header.jsp" />
+
+<table cellpadding="0" cellspacing="0" border="0" style="width: 100%;">
+ <tr>
+ <td class="right-back"></td>
+ <td class="content" valign="top">
+ <table cellpadding="0" cellspacing="0" border="0" style="width:
100%;">
+ <tr>
+ <td>
+ <h1>WSO2 Identity Provider</h1>
+ </td>
+ <td align="right" valign="top"><img
+
src="images/wso2-identity-content-rounded.jpg" align="top" /></td>
+ </tr>
+ </table>
+
+ <br>
+
+ <table cellpadding="0" cellspacing="10" border="0"
+ class="login-header">
+ <tr>
+ <td valign="top" width="30%">
+ <form
action="OpenIdUserRegistrationSubmit.action" method="post">
+ <strong>Register with WSO2 OpenID
provider</strong><br />
+ <!--todo -->
+ <div class="errors"><s:actionerror />
<s:fielderror /></div>
+ <i>All fields are required</i>
+ <table cellpadding="0" cellspacing="10"
border="0"
+ class="form-table">
+ <tr>
+ <td>User name</td>
+ <td><font
class="required">*</font><input type="text"
+ name="username"></td>
+ </tr>
+ <tr>
+ <td>Password</td>
+ <td><font
class="required">*</font><input type="password"
+ name="password"></td>
+ </tr>
+
+ <s:iterator value="claims">
+ <tr>
+ <td><s:property
value="displayTag" /></td>
+ <td><font
class="required">*</font><input type="text"
+
name="<s:property value="uri" />"></td>
+ </tr>
+ </s:iterator>
+
+ <tr>
+ <td></td>
+ <td><input type="submit"
value="Submit" class="button">
+ <input type="button"
value="Cancel"
+
onClick="javascript:window.location = 'ShowMain.action'"
+ class="button"></td>
+ </tr>
+ </table>
+ </form>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+
+<!-- Include footer -->
+<s:include value="footer.jsp" />
+
+</body>
+
+</html>
\ No newline at end of file
Added:
trunk/solutions/identity/modules/user-ui/src/main/webapp/jsp/openiduserloggedin.jsp
==============================================================================
--- (empty file)
+++
trunk/solutions/identity/modules/user-ui/src/main/webapp/jsp/openiduserloggedin.jsp
Tue Jan 8 10:46:16 2008
@@ -0,0 +1,106 @@
+<%@ taglib prefix="s" uri="/struts-tags"%>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+"http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+<title>WSO2 Identity Solution</title>
+<link type="text/css" rel="stylesheet" href="css/styles.css" />
+</head>
+<body>
+<!-- Include the header -->
+<s:include value="header.jsp" />
+
+<table cellpadding="0" cellspacing="0" border="0" style="width: 100%;">
+ <tr>
+ <td class="right-back"></td>
+ <td class="content" valign="top">
+ <table cellpadding="0" cellspacing="0" border="0" style="width:
100%;">
+ <tr>
+ <td>
+ <h1>WSO2 Identity Provider</h1>
+ </td>
+ <td align="right" valign="top"><img
+
src="images/wso2-identity-content-rounded.jpg" align="top" /></td>
+ </tr>
+ </table>
+
+ <br>
+
+ <table cellpadding="0" cellspacing="10" border="0"
+ class="login-header">
+ <tr>
+ <td valign="top" width="30%"><strong>Logged in
+ Successfully...!</strong><br />
+ <!--todo --></td>
+ </tr>
+ <% if (request.getAttribute("nickname") != null) { %>
+ <tr>
+ <td>Nick Name:</td>
+ <td><%=request.getAttribute("nickname")%></td>
+ </tr>
+ <%}%>
+ <% if (request.getAttribute("fullname") != null) { %>
+ <tr>
+ <td>Full Name:</td>
+ <td><%=request.getAttribute("fullname")%></td>
+ </tr>
+ <%}%>
+ <% if (request.getAttribute("email") != null) { %>
+ <tr>
+ <td>Email Address:</td>
+ <td><%=request.getAttribute("email")%></td>
+ </tr>
+ <%}%>
+ <% if (request.getAttribute("dob") != null) { %>
+ <tr>
+ <td>DOB:</td>
+ <td><%=request.getAttribute("dob")%></td>
+ </tr>
+ <%}%>
+ <% if (request.getAttribute("gender") != null) { %>
+ <tr>
+ <td>Gender:</td>
+ <td><%=request.getAttribute("gender")%></td>
+ </tr>
+ <%}%>
+ <% if (request.getAttribute("postcode") != null) { %>
+ <tr>
+ <td>Postcode:</td>
+ <td><%=request.getAttribute("postcode")%></td>
+ </tr>
+ <%}%>
+ <% if (request.getAttribute("country") != null) { %>
+ <tr>
+ <td>Country:</td>
+ <td><%=request.getAttribute("country")%></td>
+ </tr>
+ <%}%>
+ <% if (request.getAttribute("language") != null) { %>
+ <tr>
+ <td>Language:</td>
+ <td><%=request.getAttribute("language")%></td>
+ </tr>
+ <%}%>
+ <% if (request.getAttribute("timezone") != null) { %>
+ <tr>
+ <td>Timezone:</td>
+ <td><%=request.getAttribute("timezone")%></td>
+ </tr>
+ <%}%>
+ <tr>
+ <td colspan="2">
+ <br/> <br/>
+ <a href="/ShowMain.action">Take me to the main
page...</a>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+
+<!-- Include footer -->
+<s:include value="footer.jsp" />
+
+</body>
+
+</html>
\ No newline at end of file
_______________________________________________
Identity-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/identity-dev