Created
May 17, 2020 00:28
-
-
Save janakamarasena/c3c0cee01f71691726469e67f067fc0a to your computer and use it in GitHub Desktop.
Blog - account linking scenario 1, advance association script, JSP consent page.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> | |
| <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> | |
| <jsp:directive.include file="../includes/init-url.jsp"/> | |
| <div> | |
| <h2> | |
| We found an already registerd account with the email "<c:out value='${requestScope.data["email"]}'/>" do you want to link it? | |
| </h2> | |
| </div> | |
| <div class="boarder-all "> | |
| <div class="clearfix"></div> | |
| <div class="padding-double login-form"> | |
| <form action="<%=commonauthURL%>" method="POST"> | |
| <input type="hidden" id="decision" name="decision" value="yes"> | |
| <input type="hidden" id="promptResp" name="promptResp" value="true"> | |
| <input type="hidden" id="promptId" name="promptId" value="${requestScope.promptId}"> | |
| <div> | |
| <input type="submit" value="Yes"> | |
| <input type="submit" onclick="setDecisionNo();" value="No"> | |
| </div> | |
| </form> | |
| </div> | |
| </div> | |
| <script> | |
| var inputEl = document.getElementById("decision"); | |
| function setDecisionNo() { | |
| inputEl.value = "no"; | |
| } | |
| </script> |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note that before IS 5.10.0 the
init-url.jspfile was located directly inside theauthenticationendpointfolder. So if you are using a IS version prior to IS 5.10.0 change the<jsp:directive.include file="../includes/init-url.jsp"/>line to<jsp:directive.include file="../init-url.jsp"/>