oltu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1525877 - in /oltu/trunk/demos/client-demo/src/main/webapp: WEB-INF/spring/ WEB-INF/views/ css/
Date Tue, 24 Sep 2013 13:10:16 GMT
Author: simonetripodi
Date: Tue Sep 24 13:10:16 2013
New Revision: 1525877

URL: http://svn.apache.org/r1525877
Log:
OLTU-119 Add a css to demo application

added Bootstrap 3 as default stylesheet
no strong layout change
added class attributes to interested elements
HTML code reorganized for maintenance

Added:
    oltu/trunk/demos/client-demo/src/main/webapp/css/
    oltu/trunk/demos/client-demo/src/main/webapp/css/bootstrap.min.css   (with props)
Modified:
    oltu/trunk/demos/client-demo/src/main/webapp/WEB-INF/spring/mvc-config.xml
    oltu/trunk/demos/client-demo/src/main/webapp/WEB-INF/views/get_authz.jsp
    oltu/trunk/demos/client-demo/src/main/webapp/WEB-INF/views/get_resource.jsp
    oltu/trunk/demos/client-demo/src/main/webapp/WEB-INF/views/index.jsp
    oltu/trunk/demos/client-demo/src/main/webapp/WEB-INF/views/register.jsp
    oltu/trunk/demos/client-demo/src/main/webapp/WEB-INF/views/request_token.jsp
    oltu/trunk/demos/client-demo/src/main/webapp/WEB-INF/views/resource.jsp

Modified: oltu/trunk/demos/client-demo/src/main/webapp/WEB-INF/spring/mvc-config.xml
URL: http://svn.apache.org/viewvc/oltu/trunk/demos/client-demo/src/main/webapp/WEB-INF/spring/mvc-config.xml?rev=1525877&r1=1525876&r2=1525877&view=diff
==============================================================================
--- oltu/trunk/demos/client-demo/src/main/webapp/WEB-INF/spring/mvc-config.xml (original)
+++ oltu/trunk/demos/client-demo/src/main/webapp/WEB-INF/spring/mvc-config.xml Tue Sep 24
13:10:16 2013
@@ -32,6 +32,9 @@
     <!-- Configures support for @Controllers -->
     <mvc:annotation-driven/>
 
+    <!-- include static CSS resources -->
+    <mvc:resources mapping="/css/**" location="/css/" />
+
     <!-- Resolves view names to protected .jsp resources within the /WEB-INF/views directory
-->
     <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
         <property name="prefix" value="/WEB-INF/views/"/>

Modified: oltu/trunk/demos/client-demo/src/main/webapp/WEB-INF/views/get_authz.jsp
URL: http://svn.apache.org/viewvc/oltu/trunk/demos/client-demo/src/main/webapp/WEB-INF/views/get_authz.jsp?rev=1525877&r1=1525876&r2=1525877&view=diff
==============================================================================
--- oltu/trunk/demos/client-demo/src/main/webapp/WEB-INF/views/get_authz.jsp (original)
+++ oltu/trunk/demos/client-demo/src/main/webapp/WEB-INF/views/get_authz.jsp Tue Sep 24 13:10:16
2013
@@ -27,62 +27,64 @@
 <%--@elvariable id="oauthParams" type="org.apache.oltu.oauth2.client.demo.model.OAuthParams"--%>
 
 <html>
-<head>
-    <title>OAuth V2.0 Client Application</title>
-</head>
-
-<body>
-<h1>Sample OAuth V2.0 Client Application</h1>
-
-<h2>Web Server Flow</h2>
-
-<h3>Step 1. Get User's Authorization</h3></p>
-
-<c:if test="${!empty oauthParams.errorMessage}">
-    <font color="red"><p>Error: ${oauthParams.errorMessage}</p></font>
-</c:if>
-
-<form:form commandName="oauthParams" action="/authorize">
-    <table>
-        <tr>
-            <td>Required OAuth parameters:</td>
-        </tr>
-        <tr>
+  <head>
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <link href="/css/bootstrap.min.css" rel="stylesheet" media="screen">
+    <title>Apache Oltu - OAuth V2.0 Client Application</title>
+  </head>
+
+  <body>
+    <div class="container">
+      <h1>Apache Oltu - Sample OAuth V2.0 Client Application</h1>
+
+      <h2>Web Server Flow</h2>
+
+      <h3>Step 1. Get User's Authorization, specify required OAuth parameters</h3>
+
+      <c:if test="${!empty oauthParams.errorMessage}">
+        <div class="alert alert-danger">Error: ${oauthParams.errorMessage}</div>
+      </c:if>
+
+      <form:form commandName="oauthParams" action="/authorize">
+        <table class="table table-striped">
+          <tr>
             <td>Requested Access Scope</td>
-            <td><form:input size="70" path="scope"/></td>
-        </tr>
-        <tr>
+            <td><form:input size="70" path="scope" /></td>
+          </tr>
+          <tr>
             <td>End-User Authorization URL:</td>
-            <td><form:input size="70" path="authzEndpoint"/></td>
-        </tr>
-        <tr>
+            <td><form:input size="70" path="authzEndpoint" /></td>
+          </tr>
+          <tr>
             <td>Token Endpoint:</td>
-            <td><form:input size="70" path="tokenEndpoint"/></td>
-        </tr>
-        <tr>
+            <td><form:input size="70" path="tokenEndpoint" /></td>
+          </tr>
+          <tr>
             <td>Client ID:</td>
-            <td><form:input size="70" path="clientId"/></td>
-        </tr>
-        <tr>
+            <td><form:input size="70" path="clientId" /></td>
+          </tr>
+          <tr>
             <td>Client Secret:</td>
-            <td><form:input size="70" path="clientSecret"/></td>
-        </tr>
-        <tr>
+            <td><form:input size="70" path="clientSecret" /></td>
+          </tr>
+          <tr>
             <td>Redirect URI:</td>
-            <td><form:input size="70" path="redirectUri"/></td>
-        </tr>
-        <tr>
+            <td><form:input size="70" path="redirectUri" /></td>
+          </tr>
+          <tr>
             <td>Client State:</td>
-            <td><form:input size="70" path="state"/></td>
-        </tr>
-        <tr>
+            <td><form:input size="70" path="state" /></td>
+          </tr>
+         <tr>
             <td colspan="2">
-                <form:hidden path="application"/>
-                <input type="submit" value="Get Authorization"/>
+              <form:hidden path="application" />
+              <input type="submit" class="btn btn-primary" value="Get Authorization" />
             </td>
-        </tr>
-    </table>
-</form:form>
+          </tr>
+        </table>
+      </form:form>
+
+    </div>
+  </body>
 
-</body>
 </html>

Modified: oltu/trunk/demos/client-demo/src/main/webapp/WEB-INF/views/get_resource.jsp
URL: http://svn.apache.org/viewvc/oltu/trunk/demos/client-demo/src/main/webapp/WEB-INF/views/get_resource.jsp?rev=1525877&r1=1525876&r2=1525877&view=diff
==============================================================================
--- oltu/trunk/demos/client-demo/src/main/webapp/WEB-INF/views/get_resource.jsp (original)
+++ oltu/trunk/demos/client-demo/src/main/webapp/WEB-INF/views/get_resource.jsp Tue Sep 24
13:10:16 2013
@@ -27,118 +27,129 @@
 <%--@elvariable id="oauthParams" type="org.apache.oltu.oauth2.client.demo.model.OAuthParams"--%>
 
 <html>
-<head>
-    <title>OAuth V2.0 Client Application</title>
-</head>
-
-<body>
-<h1>Sample OAuth V2.0 Client Application</h1>
-
-<h2>Web Server Flow</h2>
-
-<h3>Step 3. Get Resource</h3></p>
-
-<c:if test="${!empty oauthParams.errorMessage}">
-    <p><font color="red">${oauthParams.errorMessage}</font></p>
-</c:if>
-
-<form:form commandName="oauthParams" action="/get_resource">
-    <table>
-        <tr>
+  <head>
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <link href="/css/bootstrap.min.css" rel="stylesheet" media="screen">
+    <title>Apache Oltu - OAuth V2.0 Client Application</title>
+  </head>
+
+  <body>
+    <div class="container">
+      <h1>Apache Oltu - Sample OAuth V2.0 Client Application</h1>
+
+      <h2>Web Server Flow</h2>
+
+      <h3>Step 3. Get Resource</h3></p>
+
+      <c:if test="${!empty oauthParams.errorMessage}">
+        <div class="alert alert-danger">${oauthParams.errorMessage}</div>
+      </c:if>
+
+      <form:form commandName="oauthParams" action="/get_resource">
+        <table class="table table-striped">
+          <tr>
             <td>Required OAuth parameters:</td>
-        </tr>
-        <tr>
+          </tr>
+          <tr>
             <td>Resource URL:</td>
-            <td><form:input size="70" path="resourceUrl"/></td>
-        </tr>
-        <tr>
+            <td><form:input size="70" path="resourceUrl" /></td>
+          </tr>
+          <tr>
             <td>Authenticated Request Type:</td>
-            <td><form:select path="requestType">
-                <form:option value="headerField"/>
-                <form:option value="queryParameter"/>
-                <form:option value="bodyParameter"/>
-            </form:select></td>
-        </tr>
-        <tr>
+            <td>
+              <form:select path="requestType">
+                <form:option value="headerField" />
+                <form:option value="queryParameter" />
+                <form:option value="bodyParameter" />
+              </form:select>
+            </td>
+          </tr>
+          <tr>
             <td>Request Method:</td>
-            <td><form:select path="requestMethod">
-                <form:option value="GET"/>
-                <form:option value="POST"/>
-            </form:select></td>
-        </tr>
-        <tr>
+            <td>
+              <form:select path="requestMethod">
+                <form:option value="GET" />
+                <form:option value="POST" />
+              </form:select>
+            </td>
+          </tr>
+          <tr>
             <td>Access Token:</td>
-            <td><form:input size="70" path="accessToken" readonly="true"/></td>
-        </tr>
-        <tr>
+            <td><form:input size="70" path="accessToken" readonly="true" /></td>
+          </tr>
+          <tr>
             <td>Expires In:</td>
-            <td><form:input size="70" path="expiresIn" readonly="true"/></td>
-        </tr>
-        <tr>
+            <td><form:input size="70" path="expiresIn" readonly="true" /></td>
+          </tr>
+          <tr>
             <td>Refresh Token:</td>
-            <td><form:input size="70" path="refreshToken" readonly="true"/></td>
-        </tr>
-        <tr>
+            <td><form:input size="70" path="refreshToken" readonly="true" /></td>
+          </tr>
+          <tr>
             <td>Requested Access Scope</td>
-            <td><form:input size="70" path="scope" readonly="true"/></td>
-        </tr>
-        <tr>
+            <td><form:input size="70" path="scope" readonly="true" /></td>
+          </tr>
+          <tr>
             <td>End-User Authorization URL:</td>
-            <td><form:input size="70" path="authzEndpoint" readonly="true"/></td>
-        </tr>
-        <tr>
+            <td><form:input size="70" path="authzEndpoint" readonly="true" /></td>
+          </tr>
+          <tr>
             <td>Token Endpoint:</td>
-            <td><form:input size="70" path="tokenEndpoint" readonly="true"/></td>
-        </tr>
-        <tr>
+            <td><form:input size="70" path="tokenEndpoint" readonly="true" /></td>
+          </tr>
+          <tr>
             <td>Client ID:</td>
-            <td><form:input size="70" path="clientId" readonly="true"/></td>
-        </tr>
-        <tr>
+            <td><form:input size="70" path="clientId" readonly="true" /></td>
+          </tr>
+          <tr>
             <td>Client Secret:</td>
-            <td><form:input size="70" path="clientSecret" readonly="true"/></td>
-        </tr>
-        <tr>
+            <td><form:input size="70" path="clientSecret" readonly="true" /></td>
+          </tr>
+          <tr>
             <td>Redirect URI:</td>
-            <td><form:input size="70" path="redirectUri" readonly="true"/></td>
-        </tr>
-        <tr>
+            <td><form:input size="70" path="redirectUri" readonly="true" /></td>
+          </tr>
+          <tr>
             <td>Client State:</td>
-            <td><form:input size="70" path="state" readonly="true"/></td>
-        </tr>
-        <tr>
+            <td><form:input size="70" path="state" readonly="true" /></td>
+          </tr>
+          <tr>
             <td colspan="2">
-                <form:hidden path="application"/>
-                <input type="submit" value="Get Resource"/>
+              <form:hidden path="application" />
+              <input type="submit" class="btn btn-primary" value="Get Resource" />
             </td>
-        </tr>
-    </table>
-</form:form>
-<form:form commandName="oauthParams" action="/get_resource">
- 	<table>
-		<h4>OpenId Connect</h4></p>
-		<tr>
+          </tr>
+        </table>
+      </form:form>
+
+      <form:form commandName="oauthParams" action="/get_resource">
+        <h4>OpenId Connect</h4>
+
+        <table class="table table-striped">
+          <tr>
             <td>ID Token:</td>
-            <td><form:input size="70" path="idToken" readonly="true"/></td>
-            <td >
-            <c:if test="${oauthParams.idTokenValid}">
-    			<p><font color="green">ID Token is valid</font></p>
-			</c:if>
-			<c:if test="${!oauthParams.idTokenValid}">
-    			<p><font color="red">ID Token is NOT valid</font></p>
-			</c:if>   
+            <td><form:input size="70" path="idToken" readonly="true" /></td>
+            <td>
+              <c:if test="${oauthParams.idTokenValid}">
+                <font color="green">ID Token is valid</font>
+              </c:if>
+              <c:if test="${!oauthParams.idTokenValid}">
+                <font color="red">ID Token is NOT valid</font>
+              </c:if>
             </td>
-        </tr>
-        <tr>
+          </tr>
+          <tr>
             <td>Header:</td>
             <td><textarea rows="15" cols="80" disabled="true">${oauthParams.header}</textarea></td>
-        </tr>
-        <tr>
+          </tr>
+          <tr>
             <td>Claims Set:</td>
             <td><textarea rows="15" cols="80" disabled="true">${oauthParams.claimsSet}</textarea></td>
-        </tr>
-	</table>
-</form:form>
-	
-</body>
+          </tr>
+        </table>
+      </form:form>
+
+    </div>
+  </body>
+
 </html>

Modified: oltu/trunk/demos/client-demo/src/main/webapp/WEB-INF/views/index.jsp
URL: http://svn.apache.org/viewvc/oltu/trunk/demos/client-demo/src/main/webapp/WEB-INF/views/index.jsp?rev=1525877&r1=1525876&r2=1525877&view=diff
==============================================================================
--- oltu/trunk/demos/client-demo/src/main/webapp/WEB-INF/views/index.jsp (original)
+++ oltu/trunk/demos/client-demo/src/main/webapp/WEB-INF/views/index.jsp Tue Sep 24 13:10:16
2013
@@ -27,55 +27,58 @@
 <%--@elvariable id="oauthParams" type="org.apache.oltu.oauth2.client.demo.model.OAuthParams"--%>
 
 <html>
-<head>
-    <title>OAuth V2.0 Client Application</title>
-</head>
-
-<body>
-<h1>Sample OAuth V2.0 Client Application</h1>
-
-<h2>Web Server Flow</h2>
-
-<h3>Choose Application</h3>
-
-<a href="/main/generic">Generic OAuth2 Application</a> 
-<a href="/main/smart_gallery">Smart Gallery</a>
-<a href="/main/facebook">Facebook</a>
-<a href="/main/google">Google</a>
-<a href="/main/github">Github</a>
-<a href="/main/linkedin">LinkedIn</a>
-
-
-<h2>JWT decoder</h2>
-
-<c:if test="${!empty oauthParams.errorMessage}">
-    <p><font color="red">${oauthParams.errorMessage}</font></p>
-</c:if>
-
-<form:form commandName="oauthParams" action="/decode">
-	<table>
-		
-		<tr>
+  <head>
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <link href="/css/bootstrap.min.css" rel="stylesheet" media="screen">
+    <title>Apache Oltu - OAuth V2.0 Client Application</title>
+  </head>
+
+  <body>
+    <div class="container">
+      <h1>Apache Oltu - Sample OAuth V2.0 Client Application</h1>
+
+      <h2>Web Server Flow</h2>
+
+      <h3>Choose Application</h3>
+
+      <ol class="breadcrumb">
+        <li><a href="/main/generic">Generic OAuth2 Application</a></li>
+        <li><a href="/main/smart_gallery">Smart Gallery</a></li>
+        <li><a href="/main/facebook">Facebook</a></li>
+        <li><a href="/main/google">Google</a></li>
+        <li><a href="/main/github">Github</a></li>
+        <li><a href="/main/linkedin">LinkedIn</a></li>
+      </ol>
+
+      <h2>JWT decoder</h2>
+
+      <c:if test="${!empty oauthParams.errorMessage}">
+        <div class="alert alert-danger">${oauthParams.errorMessage}</div>
+      </c:if>
+
+      <form:form commandName="oauthParams" action="/decode">
+        <table class="table table-striped">
+          <tr>
             <td>JWT</td>
             <td><form:input size="170" path="jwt" /></td>
-        </tr>
-        <tr>
+          </tr>
+          <tr>
             <td colspan="2">
-                <form:hidden path="application"/>
-                <input type="submit" value="Decode"/>
+              <form:hidden path="application" />
+              <input type="submit" class="btn btn-primary" value="Decode" />
             </td>
-        </tr>
-        <tr>
+          </tr>
+          <tr>
             <td>Header:</td>
             <td><textarea rows="15" cols="80" disabled="true">${oauthParams.header}</textarea></td>
-        </tr>
-        <tr>
+          </tr>
+          <tr>
             <td>Claims Set:</td>
             <td><textarea rows="15" cols="80" disabled="true">${oauthParams.claimsSet}</textarea></td>
-        </tr>
-  	</table>
-</form:form>
-
+          </tr>
+        </table>
+      </form:form>
 
-</body>
+    </div>
+  </body>
 </html>

Modified: oltu/trunk/demos/client-demo/src/main/webapp/WEB-INF/views/register.jsp
URL: http://svn.apache.org/viewvc/oltu/trunk/demos/client-demo/src/main/webapp/WEB-INF/views/register.jsp?rev=1525877&r1=1525876&r2=1525877&view=diff
==============================================================================
--- oltu/trunk/demos/client-demo/src/main/webapp/WEB-INF/views/register.jsp (original)
+++ oltu/trunk/demos/client-demo/src/main/webapp/WEB-INF/views/register.jsp Tue Sep 24 13:10:16
2013
@@ -27,67 +27,73 @@
 <%--@elvariable id="oauthRegParams" type="org.apache.oltu.oauth2.client.demo.model.OAuthRegParams"--%>
 
 <html>
-<head>
-    <title>OAuth V2.0 Client Application</title>
-</head>
-
-<body>
-<h1>Sample OAuth V2.0 Client Application</h1>
-
-<h2>Dynamic Registration</h2>
-
-<h3>Step 0. Dynamically Register Application</h3>
-
-<c:if test="${!empty oauthRegParams.errorMessage}">
-    <p><font color="red">${oauthRegParams.errorMessage}</font></p>
-</c:if>
-
-<form:form commandName="oauthRegParams" action="/register">
-    <table>
-        <tr>
+  <head>
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <link href="/css/bootstrap.min.css" rel="stylesheet" media="screen">
+    <title>Apache Oltu - OAuth V2.0 Client Application</title>
+  </head>
+
+  <body>
+    <div class="container">
+      <h1>Apache Oltu - Sample OAuth V2.0 Client Application</h1>
+
+      <h2>Dynamic Registration</h2>
+
+      <h3>Step 0. Dynamically Register Application</h3>
+
+      <c:if test="${!empty oauthRegParams.errorMessage}">
+      <div class="alert alert-danger">${oauthRegParams.errorMessage}</div>
+      </c:if>
+
+      <form:form commandName="oauthRegParams" action="/register">
+        <table class="table table-striped">
+          <tr>
             <td>Required OAuth Dynamic Registration parameters:</td>
-        </tr>
-        <tr>
+          </tr>
+          <tr>
             <td>Registration Type:</td>
-            <td><form:select path="registrationType">
+            <td>
+              <form:select path="registrationType">
                 <form:option value="push"/>
                 <form:option value="pull"/>
-            </form:select></td>
-        </tr>
-        <tr>
+              </form:select>
+            </td>
+          </tr>
+          <tr>
             <td>Application Name:</td>
-            <td><form:input size="70" path="name"/></td>
-        </tr>
-        <tr>
+            <td><form:input size="70" path="name" /></td>
+          </tr>
+          <tr>
             <td>Application URL:</td>
-            <td><form:input size="70" path="url"/></td>
-        </tr>
-        <tr>
+            <td><form:input size="70" path="url" /></td>
+          </tr>
+          <tr>
             <td>Application Description:</td>
-            <td><form:input size="70" path="description"/></td>
-        </tr>
-        <tr>
+            <td><form:input size="70" path="description" /></td>
+          </tr>
+          <tr>
             <td>Application Redirect URI:</td>
-            <td><form:input size="70" path="redirectUri"/></td>
-        </tr>
-        <tr>
+            <td><form:input size="70" path="redirectUri" /></td>
+          </tr>
+          <tr>
             <td>Application Icon URL:</td>
-            <td><form:input size="70" path="icon"/></td>
-        </tr>
-        <tr>
+            <td><form:input size="70" path="icon" /></td>
+          </tr>
+          <tr>
             <td>OAuth Registration Endpoint:</td>
-            <td><form:input size="70" path="registrationEndpoint"/></td>
-        </tr>
-        <tr>
+            <td><form:input size="70" path="registrationEndpoint" /></td>
+          </tr>
+          <tr>
             <td colspan="2">
-                <form:hidden path="authzEndpoint"/>
-                <form:hidden path="tokenEndpoint"/>
-                <form:hidden path="application"/>
-                <input type="submit" value="Register Application"/>
+              <form:hidden path="authzEndpoint" />
+              <form:hidden path="tokenEndpoint" />
+              <form:hidden path="application" />
+              <input type="submit" class="btn btn-primary" value="Register Application"
/>
             </td>
-        </tr>
-    </table>
-</form:form>
+          </tr>
+        </table>
+      </form:form>
 
-</body>
+    </div>
+  </body>
 </html>

Modified: oltu/trunk/demos/client-demo/src/main/webapp/WEB-INF/views/request_token.jsp
URL: http://svn.apache.org/viewvc/oltu/trunk/demos/client-demo/src/main/webapp/WEB-INF/views/request_token.jsp?rev=1525877&r1=1525876&r2=1525877&view=diff
==============================================================================
--- oltu/trunk/demos/client-demo/src/main/webapp/WEB-INF/views/request_token.jsp (original)
+++ oltu/trunk/demos/client-demo/src/main/webapp/WEB-INF/views/request_token.jsp Tue Sep 24
13:10:16 2013
@@ -27,61 +27,66 @@
 <%--@elvariable id="oauthParams" type="org.apache.oltu.oauth2.client.demo.model.OAuthParams"--%>
 
 <html>
-<head>
-    <title>OAuth V2.0 Client Application</title>
-</head>
-
-<body>
-<h1>Sample OAuth V2.0 Client Application</h1>
-
-<h2>Web Server Flow</h2>
-
-<h3>Step 2. Get Access Token</h3></p>
-
-<c:if test="${!empty oauthParams.errorMessage}">
-    <p><font color="red">${oauthParams.errorMessage}</font></p>
-</c:if>
-
-<form:form commandName="oauthParams" action="/get_token">
-    <table>
-        <tr>
+  <head>
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <link href="/css/bootstrap.min.css" rel="stylesheet" media="screen">
+    <title>Apache Oltu - OAuth V2.0 Client Application</title>
+  </head>
+
+  <body>
+    <div class="container">
+      <h1>Apache Oltu - Sample OAuth V2.0 Client Application</h1>
+
+      <h2>Web Server Flow</h2>
+
+      <h3>Step 2. Get Access Token</h3></p>
+
+      <c:if test="${!empty oauthParams.errorMessage}">
+        <div class="alert alert-danger">${oauthParams.errorMessage}</div>
+      </c:if>
+
+      <form:form commandName="oauthParams" action="/get_token">
+        <table class="table table-striped">
+          <tr>
             <td>Required OAuth parameters:</td>
-        </tr>
-        <tr>
+          </tr>
+          <tr>
             <td>Authorization Code:</td>
-            <td><form:input size="70" path="authzCode" readonly="true"/></td>
-        </tr>
-        <tr>
+            <td><form:input size="70" path="authzCode" readonly="true" /></td>
+          </tr>
+          <tr>
             <td>End-User Authorization URL:</td>
-            <td><form:input size="70" path="authzEndpoint" readonly="true"/></td>
-        </tr>
-        <tr>
+            <td><form:input size="70" path="authzEndpoint" readonly="true" /></td>
+          </tr>
+          <tr>
             <td>Token Endpoint:</td>
-            <td><form:input size="70" path="tokenEndpoint" readonly="true"/></td>
-        </tr>
-        <tr>
+            <td><form:input size="70" path="tokenEndpoint" readonly="true" /></td>
+          </tr>
+          <tr>
             <td>Client ID:</td>
-            <td><form:input size="70" path="clientId" readonly="true"/></td>
-        </tr>
-        <tr>
+            <td><form:input size="70" path="clientId" readonly="true" /></td>
+          </tr>
+          <tr>
             <td>Client Secret:</td>
-            <td><form:input size="70" path="clientSecret" readonly="true"/></td>
-        </tr>
-        <tr>
+            <td><form:input size="70" path="clientSecret" readonly="true" /></td>
+          </tr>
+          <tr>
             <td>Redirect URI:</td>
-            <td><form:input size="70" path="redirectUri" readonly="true"/></td>
-        </tr>
-        <tr>
+            <td><form:input size="70" path="redirectUri" readonly="true" /></td>
+          </tr>
+          <tr>
             <td>Client State:</td>
-            <td><form:input size="70" path="state" readonly="true"/></td>
-        </tr>
-        <tr>
+            <td><form:input size="70" path="state" readonly="true" /></td>
+          </tr>
+          <tr>
             <td colspan="2">
-                <form:hidden path="application"/>
-                <input type="submit" value="Get Token"/>
+              <form:hidden path="application" />
+              <input type="submit" class="btn btn-primary" value="Get Token" />
             </td>
-        </tr>
-    </table>
-</form:form>
-</body>
+          </tr>
+        </table>
+      </form:form>
+
+    </div>
+  </body>
 </html>

Modified: oltu/trunk/demos/client-demo/src/main/webapp/WEB-INF/views/resource.jsp
URL: http://svn.apache.org/viewvc/oltu/trunk/demos/client-demo/src/main/webapp/WEB-INF/views/resource.jsp?rev=1525877&r1=1525876&r2=1525877&view=diff
==============================================================================
--- oltu/trunk/demos/client-demo/src/main/webapp/WEB-INF/views/resource.jsp (original)
+++ oltu/trunk/demos/client-demo/src/main/webapp/WEB-INF/views/resource.jsp Tue Sep 24 13:10:16
2013
@@ -27,22 +27,25 @@
 <%--@elvariable id="oauthParams" type="org.apache.oltu.oauth2.client.demo.model.OAuthParams"--%>
 
 <html>
-<head>
-    <title>OAuth V2.0 Client Application</title>
-</head>
-
-<body>
-<h1>Sample OAuth V2.0 Client Application</h1>
-
-<h2>Web Server Flow</h2>
-
-<h3>Your Resource:</h3>
-
-<c:if test="${!empty oauthParams.errorMessage}">
-    <p><font color="red">${oauthParams.errorMessage}</font></p>
-</c:if>
-
-<textarea rows="15" cols="80" disabled="true">${oauthParams.resource}</textarea>
-
-</body>
+  <head>
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <link href="/css/bootstrap.min.css" rel="stylesheet" media="screen">
+    <title>Apache Oltu - OAuth V2.0 Client Application</title>
+  </head>
+
+  <body>
+    <div class="container">
+      <h1>Apache Oltu - Sample OAuth V2.0 Client Application</h1>
+
+      <h2>Web Server Flow</h2>
+
+      <h3>Your Resource:</h3>
+
+      <c:if test="${!empty oauthParams.errorMessage}">
+      <div class="alert alert-danger">${oauthParams.errorMessage}</div>
+      </c:if>
+
+      <textarea rows="15" cols="80" disabled="true">${oauthParams.resource}</textarea>
+    </div>
+  </body>
 </html>

Added: oltu/trunk/demos/client-demo/src/main/webapp/css/bootstrap.min.css
URL: http://svn.apache.org/viewvc/oltu/trunk/demos/client-demo/src/main/webapp/css/bootstrap.min.css?rev=1525877&view=auto
==============================================================================
--- oltu/trunk/demos/client-demo/src/main/webapp/css/bootstrap.min.css (added)
+++ oltu/trunk/demos/client-demo/src/main/webapp/css/bootstrap.min.css Tue Sep 24 13:10:16
2013
@@ -0,0 +1,9 @@
+/*!
+ * Bootstrap v3.0.0
+ *
+ * Copyright 2013 Twitter, Inc
+ * Licensed under the Apache License v2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Designed and built with all the love in the world by @mdo and @fat.

[... 3 lines stripped ...]
Propchange: oltu/trunk/demos/client-demo/src/main/webapp/css/bootstrap.min.css
------------------------------------------------------------------------------
    svn:mime-type = text/css



Mime
View raw message