Changeset 68
- Timestamp:
- 01/26/07 21:19:25 (2 years ago)
- Files:
-
- AcmeIdp/trunk/nbproject/build-impl.xml (modified) (5 diffs)
- AcmeIdp/trunk/nbproject/genfiles.properties (modified) (1 diff)
- AcmeIdp/trunk/nbproject/project.properties (modified) (1 diff)
- AcmeIdp/trunk/nbproject/project.xml (modified) (1 diff)
- AcmeIdp/trunk/web/recv-authnrequest.jsp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
AcmeIdp/trunk/nbproject/build-impl.xml
r61 r68 398 398 <basename property="included.lib.libs.Javolution.classpath" file="${libs.Javolution.classpath}"/> 399 399 <copy-ear-war file="${libs.Javolution.classpath}" propname="included.lib.libs.Javolution.classpath.X"/> 400 <basename property="included.lib.libs.OpenSAML.classpath.8" file="${libs.OpenSAML.classpath.libfile.8}"/>401 400 <basename property="included.lib.libs.OpenSAML.classpath.7" file="${libs.OpenSAML.classpath.libfile.7}"/> 402 401 <basename property="included.lib.libs.OpenSAML.classpath.6" file="${libs.OpenSAML.classpath.libfile.6}"/> … … 406 405 <basename property="included.lib.libs.OpenSAML.classpath.2" file="${libs.OpenSAML.classpath.libfile.2}"/> 407 406 <basename property="included.lib.libs.OpenSAML.classpath.1" file="${libs.OpenSAML.classpath.libfile.1}"/> 408 <copy-ear-war file="${libs.OpenSAML.classpath.libfile.8}" propname="included.lib.libs.OpenSAML.classpath.8.X"/>409 407 <copy-ear-war file="${libs.OpenSAML.classpath.libfile.7}" propname="included.lib.libs.OpenSAML.classpath.7.X"/> 410 408 <copy-ear-war file="${libs.OpenSAML.classpath.libfile.6}" propname="included.lib.libs.OpenSAML.classpath.6.X"/> … … 414 412 <copy-ear-war file="${libs.OpenSAML.classpath.libfile.2}" propname="included.lib.libs.OpenSAML.classpath.2.X"/> 415 413 <copy-ear-war file="${libs.OpenSAML.classpath.libfile.1}" propname="included.lib.libs.OpenSAML.classpath.1.X"/> 416 <basename property="included.lib.libs.Xalan.classpath.5" file="${libs.Xalan.classpath.libfile.5}"/>417 <basename property="included.lib.libs.Xalan.classpath.4" file="${libs.Xalan.classpath.libfile.4}"/>418 <basename property="included.lib.libs.Xalan.classpath.3" file="${libs.Xalan.classpath.libfile.3}"/>419 <basename property="included.lib.libs.Xalan.classpath.2" file="${libs.Xalan.classpath.libfile.2}"/>420 <basename property="included.lib.libs.Xalan.classpath.1" file="${libs.Xalan.classpath.libfile.1}"/>421 <copy-ear-war file="${libs.Xalan.classpath.libfile.5}" propname="included.lib.libs.Xalan.classpath.5.X"/>422 <copy-ear-war file="${libs.Xalan.classpath.libfile.4}" propname="included.lib.libs.Xalan.classpath.4.X"/>423 <copy-ear-war file="${libs.Xalan.classpath.libfile.3}" propname="included.lib.libs.Xalan.classpath.3.X"/>424 <copy-ear-war file="${libs.Xalan.classpath.libfile.2}" propname="included.lib.libs.Xalan.classpath.2.X"/>425 <copy-ear-war file="${libs.Xalan.classpath.libfile.1}" propname="included.lib.libs.Xalan.classpath.1.X"/>426 414 <mkdir dir="${build.web.dir.real}/META-INF"/> 427 415 <manifest file="${build.web.dir.real}/META-INF/MANIFEST.MF" mode="update"> 428 <attribute name="Class-Path" value="${included.lib.libs.ApacheCommons.classpath.1.X} ${included.lib.libs.ApacheCommons.classpath.2.X} ${included.lib.libs.ApacheCommons.classpath.3.X} ${included.lib.libs.ApacheCommons.classpath.4.X} ${included.lib.libs.ApacheCommons.classpath.5.X} ${included.lib.libs.Javolution.classpath} ${included.lib.libs.OpenSAML.classpath.1.X} ${included.lib.libs.OpenSAML.classpath.2.X} ${included.lib.libs.OpenSAML.classpath.3.X} ${included.lib.libs.OpenSAML.classpath.4.X} ${included.lib.libs.OpenSAML.classpath.5.X} ${included.lib.libs.OpenSAML.classpath.6.X} ${included.lib.libs.OpenSAML.classpath.7.X} ${included.lib.libs.OpenSAML.classpath.8.X} ${included.lib.libs.Xalan.classpath.1.X} ${included.lib.libs.Xalan.classpath.2.X} ${included.lib.libs.Xalan.classpath.3.X} ${included.lib.libs.Xalan.classpath.4.X} ${included.lib.libs.Xalan.classpath.5.X}"/>416 <attribute name="Class-Path" value="${included.lib.libs.ApacheCommons.classpath.1.X} ${included.lib.libs.ApacheCommons.classpath.2.X} ${included.lib.libs.ApacheCommons.classpath.3.X} ${included.lib.libs.ApacheCommons.classpath.4.X} ${included.lib.libs.ApacheCommons.classpath.5.X} ${included.lib.libs.Javolution.classpath} ${included.lib.libs.OpenSAML.classpath.1.X} ${included.lib.libs.OpenSAML.classpath.2.X} ${included.lib.libs.OpenSAML.classpath.3.X} ${included.lib.libs.OpenSAML.classpath.4.X} ${included.lib.libs.OpenSAML.classpath.5.X} ${included.lib.libs.OpenSAML.classpath.6.X} ${included.lib.libs.OpenSAML.classpath.7.X} "/> 429 417 </manifest> 430 418 <delete dir="${dist.ear.dir}/temp"/> … … 437 425 <copy file="${libs.ApacheCommons.classpath.libfile.1}" todir="${build.web.dir.real}/WEB-INF/lib"/> 438 426 <copy file="${libs.Javolution.classpath}" todir="${build.web.dir.real}/WEB-INF/lib"/> 439 <copy file="${libs.OpenSAML.classpath.libfile.8}" todir="${build.web.dir.real}/WEB-INF/lib"/>440 427 <copy file="${libs.OpenSAML.classpath.libfile.7}" todir="${build.web.dir.real}/WEB-INF/lib"/> 441 428 <copy file="${libs.OpenSAML.classpath.libfile.6}" todir="${build.web.dir.real}/WEB-INF/lib"/> … … 445 432 <copy file="${libs.OpenSAML.classpath.libfile.2}" todir="${build.web.dir.real}/WEB-INF/lib"/> 446 433 <copy file="${libs.OpenSAML.classpath.libfile.1}" todir="${build.web.dir.real}/WEB-INF/lib"/> 447 <copy file="${libs.Xalan.classpath.libfile.5}" todir="${build.web.dir.real}/WEB-INF/lib"/>448 <copy file="${libs.Xalan.classpath.libfile.4}" todir="${build.web.dir.real}/WEB-INF/lib"/>449 <copy file="${libs.Xalan.classpath.libfile.3}" todir="${build.web.dir.real}/WEB-INF/lib"/>450 <copy file="${libs.Xalan.classpath.libfile.2}" todir="${build.web.dir.real}/WEB-INF/lib"/>451 <copy file="${libs.Xalan.classpath.libfile.1}" todir="${build.web.dir.real}/WEB-INF/lib"/>452 434 </target> 453 435 <target name="do-ear-dist" depends="init,compile,compile-jsps,-pre-dist,library-inclusion-in-manifest"> AcmeIdp/trunk/nbproject/genfiles.properties
r61 r68 1 build.xml.data.CRC32=d 756e5651 build.xml.data.CRC32=d1e419c4 2 2 build.xml.script.CRC32=ff870e9f 3 3 build.xml.stylesheet.CRC32=b4cea8bf 4 4 # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. 5 5 # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. 6 nbproject/build-impl.xml.data.CRC32=d 756e5657 nbproject/build-impl.xml.script.CRC32= 74742c9c6 nbproject/build-impl.xml.data.CRC32=d1e419c4 7 nbproject/build-impl.xml.script.CRC32=a1bd2566 8 8 nbproject/build-impl.xml.stylesheet.CRC32=8b52d23f AcmeIdp/trunk/nbproject/project.properties
r61 r68 26 26 ${libs.ApacheCommons.classpath}:\ 27 27 ${libs.Javolution.classpath}:\ 28 ${libs.OpenSAML.classpath}:\ 29 ${libs.Xalan.classpath} 28 ${libs.OpenSAML.classpath} 30 29 # Space-separated list of extra javac options 31 30 javac.compilerargs= AcmeIdp/trunk/nbproject/project.xml
r61 r68 15 15 <path-in-war>WEB-INF/lib</path-in-war> 16 16 </library> 17 <library files=" 8">17 <library files="7"> 18 18 <file>${libs.OpenSAML.classpath}</file> 19 <path-in-war>WEB-INF/lib</path-in-war>20 </library>21 <library files="5">22 <file>${libs.Xalan.classpath}</file>23 19 <path-in-war>WEB-INF/lib</path-in-war> 24 20 </library> AcmeIdp/trunk/web/recv-authnrequest.jsp
r67 r68 5 5 6 6 <%@ page import="org.joda.time.DateTime" %> 7 <%@ page import="org.apache.commons.codec.binary.Base64" %>8 7 9 8 <%@ page import="org.opensaml.*" %> 10 9 <%@ page import="org.opensaml.common.binding.BindingException" %> 11 10 <%@ page import="org.opensaml.common.xml.SAMLConstants" %> 12 <%@ page import="org.opensaml.xml.*" %>13 <%@ page import="org.opensaml.xml.io.*" %>14 11 <%@ page import="org.opensaml.saml2.binding.*" %> 15 12 <%@ page import="org.opensaml.saml2.core.*" %> 16 13 <%@ page import="org.opensaml.saml2.core.impl.*" %> 14 <%@ page import="org.opensaml.xml.*" %> 15 <%@ page import="org.opensaml.xml.io.*" %> 16 <%@ page import="org.opensaml.xml.util.Base64" %> 17 <%@ page import="org.opensaml.xml.util.XMLHelper" %> 17 18 18 19 <%@ page import="org.w3c.dom.Element" %> 19 <%@ page import="org.w3c.dom.bootstrap.DOMImplementationRegistry" %>20 <%@ page import="org.w3c.dom.Document" %>21 <%@ page import="org.w3c.dom.ls.DOMImplementationLS" %>22 <%@ page import="org.w3c.dom.ls.*" %>23 24 20 25 21 <% 22 String relayState; 23 24 relayState = request.getParameter("RelayState"); // grab the Base64 value 25 relayState = new String(Base64.decode(relayState)); 26 27 26 28 // first bootstrap the entire opensaml library 27 29 org.opensaml.DefaultBootstrap.bootstrap(); 28 30 29 String relayState;30 31 HTTPPostDecoder decode = new HTTPPostDecoder(); 31 32 … … 35 36 relayState = decode.getRelayState(); 36 37 } catch (BindingException be) { 37 response.sendError(500, "No valid SAML 2.0 RelayState found in the request.");38 return;38 // response.sendError(500, "No valid SAML 2.0 RelayState found in the request. [" + be.getMessage() + "] [" + be.getCause().getMessage() + "]"); 39 // return; 39 40 } 40 41 // Use the OpenSAML Configuration singleton to get a builder factory object … … 88 89 } 89 90 */ 91 relayState = relayState.replace("<", "<"); 92 relayState = relayState.replace(">", ">"); 90 93 91 94 %> … … 103 106 104 107 105 <h1>ACME Idp AuthnRequest </h1>108 <h1>ACME Idp AuthnRequest Received</h1> 106 109 <table> 107 <tr><td>auth: <% //out.println( auth.toString() );%></td></tr> 108 <tr><td>newIssuer: <% //out.println( newIssuer.toString() );%></td></tr> 109 <tr><td>authElement: <% //if (authElement != null) out.println( authElement.toString() );%></td></tr> 110 <tr><td>msg <% //out.println( msg );%></td></tr> 111 <tr><td>str <% //out.println( str );%> </td></tr> 110 <tr><td><% out.println( relayState );%></td></tr> 112 111 113 112 </table>
