📄 login.jsp
字号:
<%@page import="org.wso2.solutions.identity.relyingparty.TokenVerifierConstants"%><%@page import="org.wso2.solutions.identity.relyingparty.HTMLEncoder"%><%@page import="org.wso2.solutions.identity.IdentityConstants"%><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)) {String givenName = (String)request.getAttribute(IdentityConstants.CLAIM_GIVEN_NAME);String surname = (String)request.getAttribute(IdentityConstants.CLAIM_SURNAME);String email = (String)request.getAttribute(IdentityConstants.CLAIM_EMAIL_ADDRESS);if(givenName == null){%><h2>Error! Given name is null</h2><% }else if(surname == null){%><h2>Error! Surname is null</h2><% }else if(email == null){%><h2>Error! Email is null</h2><% }else{%><h2>Welcome <%= HTMLEncoder.encode(givenName) %> <%= HTMLEncoder.encode(surname) %> !!!</h2><p></p><%=HTMLEncoder.encode(email) %> </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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -