post.jsp revision 582e36341ac074edef01288d0d203f4035eaeb95
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson Copyright (c) 2007 Sun Microsystems Inc. All Rights Reserved
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson The contents of this file are subject to the terms
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson of the Common Development and Distribution License
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson (the License). You may not use this file except in
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson compliance with the License.
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson You can obtain a copy of the License at
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson https://opensso.dev.java.net/public/CDDLv1.0.html or
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson See the License for the specific language governing
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson permission and limitations under the License.
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson When distributing Covered Code, include this CDDL
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence Header Notice in each file and include the License file
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson If applicable, add the following below the CDDL Header,
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson with the fields enclosed by brackets [] replaced by
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson your own identifying information:
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson "Portions Copyrighted [year] [name of copyright owner]"
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson $Id: post.jsp,v 1.3 2008/06/25 05:48:38 qcheng Exp $
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson Portions Copyrighted 2014 ForgeRock AS
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson<%@page contentType="text/html; charset=UTF-8"
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence import="com.sun.identity.wsfederation.common.WSFederationConstants"
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson String targetURL =
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson (String)request.getAttribute(WSFederationConstants.POST_ACTION);
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson (String)request.getAttribute(WSFederationConstants.POST_WA);
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson (String)request.getAttribute(WSFederationConstants.POST_WCTX);
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson String wresult =
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson (String)request.getAttribute(WSFederationConstants.POST_WRESULT);
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson<html xmlns="https://www.w3.org/1999/xhtml">
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson <title>Access rights validated</title>
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson <body onLoad="document.forms[0].submit()">
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson <form method="POST" action="<%=targetURL%>">
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson <input type="hidden" name="wa" value="<%=wa%>">
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson if (wctx != null && wctx.length() != 0) {
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson <input type="hidden" name="wctx" value="<%=wctx%>">
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson <input type="hidden" name="wresult" value="<%=wresult%>">