You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by dj...@apache.org on 2008/11/02 19:06:22 UTC
svn commit: r709896 - in
/geronimo/sandbox/djencks/samples/security/openid/openid-sample:
openid-app/src/main/webapp/ openid-sample-jetty/src/main/plan/
openid-xrds-jetty/src/main/history/
Author: djencks
Date: Sun Nov 2 10:06:21 2008
New Revision: 709896
URL: http://svn.apache.org/viewvc?rev=709896&view=rev
Log:
Add login page, improve html
Added:
geronimo/sandbox/djencks/samples/security/openid/openid-sample/openid-xrds-jetty/src/main/history/
geronimo/sandbox/djencks/samples/security/openid/openid-sample/openid-xrds-jetty/src/main/history/dependencies.xml (with props)
Modified:
geronimo/sandbox/djencks/samples/security/openid/openid-sample/openid-app/src/main/webapp/index.jsp
geronimo/sandbox/djencks/samples/security/openid/openid-sample/openid-app/src/main/webapp/login.jsp
geronimo/sandbox/djencks/samples/security/openid/openid-sample/openid-app/src/main/webapp/secured.jsp
geronimo/sandbox/djencks/samples/security/openid/openid-sample/openid-sample-jetty/src/main/plan/plan.xml
Modified: geronimo/sandbox/djencks/samples/security/openid/openid-sample/openid-app/src/main/webapp/index.jsp
URL: http://svn.apache.org/viewvc/geronimo/sandbox/djencks/samples/security/openid/openid-sample/openid-app/src/main/webapp/index.jsp?rev=709896&r1=709895&r2=709896&view=diff
==============================================================================
--- geronimo/sandbox/djencks/samples/security/openid/openid-sample/openid-app/src/main/webapp/index.jsp (original)
+++ geronimo/sandbox/djencks/samples/security/openid/openid-sample/openid-app/src/main/webapp/index.jsp Sun Nov 2 10:06:21 2008
@@ -1,10 +1,21 @@
<html>
-<body>
-<h2>Unsecured</h2>
+
+<head>
+ <title>OpenID Enabled Application -- Unsecured</title>
+</head>
+
+<body bgcolor="Aquamarine">
+<h2>OpenID Enabled Application -- Unsecured</h2>
+
+<div>
+ <a href="secured">secured area</a>
+</div>
<form action="secured" method="post">
<div>
- <input type="text" name="openid_identifier"/>
+ OpenID Identifier: <input type="text" name="openid_identifier" size="100"/>
+ </div>
+ <div>
<input type="submit" name="login" value="Login"/>
</div>
</form>
Modified: geronimo/sandbox/djencks/samples/security/openid/openid-sample/openid-app/src/main/webapp/login.jsp
URL: http://svn.apache.org/viewvc/geronimo/sandbox/djencks/samples/security/openid/openid-sample/openid-app/src/main/webapp/login.jsp?rev=709896&r1=709895&r2=709896&view=diff
==============================================================================
--- geronimo/sandbox/djencks/samples/security/openid/openid-sample/openid-app/src/main/webapp/login.jsp (original)
+++ geronimo/sandbox/djencks/samples/security/openid/openid-sample/openid-app/src/main/webapp/login.jsp Sun Nov 2 10:06:21 2008
@@ -1,5 +1,16 @@
<html>
-<body>
-<h2>Unsecured</h2>
+<head>
+ <title>OpenID Enabled Application -- Login page</title>
+</head>
+<body bgcolor="Aquamarine">
+<h2>Login</h2>
+
+<form action="secured" method="post">
+ <div>
+ OpenID Identifier: <input type="text" name="openid_identifier" size="100"/>
+ <input type="submit" name="login" value="Login"/>
+ </div>
+</form>
+
</body>
</html>
Modified: geronimo/sandbox/djencks/samples/security/openid/openid-sample/openid-app/src/main/webapp/secured.jsp
URL: http://svn.apache.org/viewvc/geronimo/sandbox/djencks/samples/security/openid/openid-sample/openid-app/src/main/webapp/secured.jsp?rev=709896&r1=709895&r2=709896&view=diff
==============================================================================
--- geronimo/sandbox/djencks/samples/security/openid/openid-sample/openid-app/src/main/webapp/secured.jsp (original)
+++ geronimo/sandbox/djencks/samples/security/openid/openid-sample/openid-app/src/main/webapp/secured.jsp Sun Nov 2 10:06:21 2008
@@ -1,5 +1,8 @@
<html>
-<body>
+<head>
+ <title>OpenID Enabled Application -- Secured</title>
+</head>
+<body bgcolor="Aquamarine">
<h2>Secured</h2>
</body>
</html>
Modified: geronimo/sandbox/djencks/samples/security/openid/openid-sample/openid-sample-jetty/src/main/plan/plan.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/djencks/samples/security/openid/openid-sample/openid-sample-jetty/src/main/plan/plan.xml?rev=709896&r1=709895&r2=709896&view=diff
==============================================================================
--- geronimo/sandbox/djencks/samples/security/openid/openid-sample/openid-sample-jetty/src/main/plan/plan.xml (original)
+++ geronimo/sandbox/djencks/samples/security/openid/openid-sample/openid-sample-jetty/src/main/plan/plan.xml Sun Nov 2 10:06:21 2008
@@ -19,12 +19,16 @@
<!-- $Rev$ $Date$ -->
<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1"
- xmlns:jaspi="http://geronimo.apache.org/xml/ns/geronimo-jaspi">
+ xmlns:jaspi="http://geronimo.apache.org/xml/ns/geronimo-jaspi">
<context-root>openid</context-root>
<security-realm-name>geronimo-admin</security-realm-name>
<authentication>
<jaspi:serverAuthModule>
<jaspi:className>org.apache.geronimo.components.jaspi.modules.openid.OpenIDServerAuthModule</jaspi:className>
+ <jaspi:options>
+ org.apache.geronimo.security.jaspi.openid.LoginPage=login.jsp
+ org.apache.geronimo.security.jaspi.openid.ErrorPage=login.jsp
+ </jaspi:options>
</jaspi:serverAuthModule>
</authentication>
<app:security xsi:type="sec:securityType" xmlns:sec="http://geronimo.apache.org/xml/ns/security-2.0" xmlns:app="http://geronimo.apache.org/xml/ns/j2ee/application-2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
Added: geronimo/sandbox/djencks/samples/security/openid/openid-sample/openid-xrds-jetty/src/main/history/dependencies.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/djencks/samples/security/openid/openid-sample/openid-xrds-jetty/src/main/history/dependencies.xml?rev=709896&view=auto
==============================================================================
--- geronimo/sandbox/djencks/samples/security/openid/openid-sample/openid-xrds-jetty/src/main/history/dependencies.xml (added)
+++ geronimo/sandbox/djencks/samples/security/openid/openid-sample/openid-xrds-jetty/src/main/history/dependencies.xml Sun Nov 2 10:06:21 2008
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<plugin-artifact xmlns:ns2="http://geronimo.apache.org/xml/ns/attributes-1.2" xmlns="http://geronimo.apache.org/xml/ns/plugins-1.3">
+ <module-id>
+ <groupId>org.apache.geronimo.samples</groupId>
+ <artifactId>openid-xrds-jetty</artifactId>
+ <version>2.2-SNAPSHOT</version>
+ <type>car</type>
+ </module-id>
+ <dependency>
+ <groupId>org.apache.geronimo.configs</groupId>
+ <artifactId>jasper</artifactId>
+ <type>car</type>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.geronimo.configs</groupId>
+ <artifactId>jetty7</artifactId>
+ <type>car</type>
+ </dependency>
+</plugin-artifact>
Propchange: geronimo/sandbox/djencks/samples/security/openid/openid-sample/openid-xrds-jetty/src/main/history/dependencies.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/sandbox/djencks/samples/security/openid/openid-sample/openid-xrds-jetty/src/main/history/dependencies.xml
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/sandbox/djencks/samples/security/openid/openid-sample/openid-xrds-jetty/src/main/history/dependencies.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml