📄 openidinfocardloggedin.jsp
字号:
<%@page import="org.wso2.solutions.identity.relyingparty.TokenVerifierConstants"%>
<%@page import="org.wso2.solutions.identity.relyingparty.HTMLEncoder"%>
<%@page import="org.wso2.solutions.identity.IdentityConstants"%>
<%@page import="org.wso2.solutions.identity.relyingparty.openid.OpenIDConsumer "%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
</head>
<body>
<% if (request.getMethod().equals("GET"))
{
%>
<form name="frm" id="frm" method="post" action="openidinfocardloggedin.jsp">
<input type="hidden" name="InfoCardSignin" value="Log in" /><br/>
<OBJECT type="application/x-informationCard" name="xmlToken">
<PARAM Name="tokenType" Value="http://specs.openid.net/auth/2.0">
<PARAM Name="requiredClaims" Value="http://schema.openid.net/2007/05/claims/identifier">
<param name="optionalClaims" Value="http://axschema.org/contact/email http://axschema.org/namePerson/first http://axschema.org/namePerson/last http://axschema.org/contact/phone/default http://axschema.org/contact/postalAddress/home http://axschema.org/contact/city/home http://axschema.org/contact/postalCode/home http://axschema.org/contact/country/home http://axschema.org/contact/web/blog">
</OBJECT>
</form>
<script language="JavaScript" type="text/JavaScript">
<!--
document.frm.submit();
-->
</script>
<%
}
%>
<table cellpadding="0" cellspacing="0" border="0" style="width: 100%;">
<tr>
<%
String auth = (String)request.getAttribute(TokenVerifierConstants.SERVLET_ATTR_STATE);
if(auth != null && TokenVerifierConstants.STATE_SUCCESS.equals(auth)) {
%>
<table cellpadding="0" cellspacing="10" border="0"
<tr>
<td valign="top" width="30%">
<strong>Logged in Successfully...!</strong><br />
</td>
</tr>
<% if (request.getAttribute("openid_identifier") != null) { %>
<tr>
<td>Your OpenID:</td>
<td><%=request.getAttribute("openid_identifier")%></td>
</tr>
<%}%>
<% if (request.getAttribute("nickname") != null) { %>
<tr>
<td>Nick Name:</td>
<td><%=request.getAttribute("nickname")%></td>
</tr>
<%}%>
<% if (request.getAttribute("fullname") != null) { %>
<tr>
<td>Full Name:</td>
<td><%=request.getAttribute("fullname")%></td>
</tr>
<%}%>
<% if (request.getAttribute("email") != null) { %>
<tr>
<td>Email Address:</td>
<td><%=request.getAttribute("email")%></td>
</tr>
<%}%>
<% if (request.getAttribute("dob") != null) { %>
<tr>
<td>DOB:</td>
<td><%=request.getAttribute("dob")%></td>
</tr>
<%}%>
<% if (request.getAttribute("gender") != null) { %>
<tr>
<td>Gender:</td>
<td><%=request.getAttribute("gender")%></td>
</tr>
<%}%>
<% if (request.getAttribute("postcode") != null) { %>
<tr>
<td>Postcode:</td>
<td><%=request.getAttribute("postcode")%></td>
</tr>
<%}%>
<% if (request.getAttribute("country") != null) { %>
<tr>
<td>Country:</td>
<td><%=request.getAttribute("country")%></td>
</tr>
<%}%>
<% if (request.getAttribute("language") != null) { %>
<tr>
<td>Language:</td>
<td><%=request.getAttribute("language")%></td>
</tr>
<%}%>
<% if (request.getAttribute("timezone") != null) { %>
<tr>
<td>Timezone:</td>
<td><%=request.getAttribute("timezone")%></td>
</tr>
<%}%>
<% if (request.getAttribute("nicknameax") != null) { %>
<tr>
<td>Nick Name:</td>
<td><%=request.getAttribute("nicknameax")%></td>
</tr>
<%}%>
<% if (request.getAttribute("fullnameax") != null) { %>
<tr>
<td>Full Name:</td>
<td><%=request.getAttribute("fullnameax")%></td>
</tr>
<%}%>
<% if (request.getAttribute("emailax") != null) { %>
<tr>
<td>Email Address:</td>
<td><%=request.getAttribute("emailax")%></td>
</tr>
<%}%>
<% if (request.getAttribute("dobax") != null) { %>
<tr>
<td>DOB:</td>
<td><%=request.getAttribute("dobax")%></td>
</tr>
<%}%>
<% if (request.getAttribute("genderax") != null) { %>
<tr>
<td>Gender:</td>
<td><%=request.getAttribute("genderax")%></td>
</tr>
<%}%>
<% if (request.getAttribute("postcodeax") != null) { %>
<tr>
<td>Postcode:</td>
<td><%=request.getAttribute("postcodeax")%></td>
</tr>
<%}%>
<% if (request.getAttribute("countryax") != null) { %>
<tr>
<td>Country:</td>
<td><%=request.getAttribute("countryax")%></td>
</tr>
<%}%>
<% if (request.getAttribute("languageax") != null) { %>
<tr>
<td>Language:</td>
<td><%=request.getAttribute("languageax")%></td>
</tr>
<%}%>
<% if (request.getAttribute("timezoneax") != null) { %>
<tr>
<td>Timezone:</td>
<td><%=request.getAttribute("timezoneax")%></td>
</tr>
<%}%>
</table>
<%
} else {
%>
<table>
<tr>
<td><strong>Login failed...!</strong><br />
</td>
</tr>
</table>
<%}%>
</td>
</tr>
</table>
<br/><br/>
<a href="index.html">Back</a>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -