<%@page import="org.wso2.solutions.identity.relyingparty.TokenVerifierConstants"%>
<html>
<head><title>Hello, World</title></head>
<body>
<img src="images/logo.gif" />

<% 

String auth = (String)request.getAttribute(TokenVerifierConstants.SERVLET_ATTR_STATE);
if(auth != null && TokenVerifierConstants.STATE_SUCCESS.equals(auth)) {
%>
<h2>Welcome <%= (String)request.getAttribute("givenname") %> <%= (String)request.getAttribute("surname") %> !!!</h2>
<p></p>

<%=(String)request.getAttribute("emailaddress") %> </br>

You are logged into the WSO2 Identity Solution Sample Relying Party :-)


<%
} else {
%>

<h2>Login failure !!!</h2> 
<h3><%=(String)request.getAttribute(TokenVerifierConstants.FAILURE_REASON) %></h3>
<%
}
%>

<a href="index.html">Back</a>

<hr/>
<a href="http://www.wso2.org/projects/solutions/identity">WSO2 Identity Solution</a>

</body>
</html>
