<%@ page language="java" pageEncoding="iso-8859-1" contentType="text/html; charset=iso-8859-1" %>
<%
	out.clear();
	java.util.Map param = (java.util.Map)session.getAttribute("PostParam");
	java.util.Iterator itr = null;
	if(param != null) {
		itr = param.keySet().iterator();
	}
	
%><html>
<head>
<title>POST ASSERTION</title>
</head>
<body onload="document.forms[0].submit()">
<!--body-->
<form method="POST" action="<%=session.getAttribute("Consumer")%>">
<input type="hidden" name="SAMLResponse" value="<%=new java.lang.String(((org.opensaml.SAMLResponse)session.getAttribute("SAMLResponse")).toBase64())%>" />
<input type="hidden" name="TARGET" value="<%=session.getAttribute("TARGET")%>" />
<%if(itr != null) {while(itr.hasNext()) {String key = itr.next().toString();%>
<input type="hidden" name="<%=key%>" value="<%=param.get(key)%>" />
<%}}%>
</form>
</body>
</html>
<%
	session.removeAttribute("SAMLResponse");
	session.removeAttribute("TARGET");
	session.removeAttribute("consumer");
	session.removeAttribute("PostParam");
%>