Updated approve.jsp with Jett's new code to display some checkboxes. This has been tested, and the additional parameters are persisted correctly and are available to the TokenGranter.
parent
424f8bb737
commit
8684bb969f
|
@ -26,22 +26,31 @@
|
||||||
|
|
||||||
<p>I hereby authorize "<c:out value="${client.clientId}"/>" to access my protected resources.</p>
|
<p>I hereby authorize "<c:out value="${client.clientId}"/>" to access my protected resources.</p>
|
||||||
|
|
||||||
<p>
|
|
||||||
|
|
||||||
<form name="confirmationForm" style="display:inline"
|
|
||||||
action="<%=request.getContextPath()%>/oauth/authorize" method="post">
|
<form name="confirmationForm" style="display:inline" action="<%=request.getContextPath()%>/oauth/authorize" method="post">
|
||||||
<input name="user_oauth_approval" value="true" type="hidden"/>
|
|
||||||
<input name="authorize" value="Authorize" type="submit" class="btn btn-success btn-large"/>
|
<div class="row">
|
||||||
</form>
|
<input id="user_oauth_approval" name="user_oauth_approval" value="true" type="hidden"/>
|
||||||
|
<input name="authorize" value="Authorize" type="submit"
|
||||||
|
onclick="$('#user_oauth_approval').attr('value',true)" class="btn btn-success btn-large"/>
|
||||||
|
|
||||||
|
|
||||||
<form name="denialForm" style="display:inline" action="<%=request.getContextPath()%>/oauth/authorize"
|
<input name="deny" value="Deny" type="submit" onclick="$('#user_oauth_approval').attr('value',false)"
|
||||||
method="post">
|
class="btn btn-secondary btn-large"/>
|
||||||
<input name="user_oauth_approval" value="false" type="hidden"/>
|
</div>
|
||||||
<input name="deny" value="Deny" type="submit" class="btn btn-secondary btn-large"/>
|
<div class="row control-group">
|
||||||
</form>
|
<label for="option1"></label>
|
||||||
</p>
|
<input name="option1" id="option1" type="checkbox"> Check me out
|
||||||
<a href="#" class="small">learn more</a>
|
|
||||||
|
|
||||||
|
<label for="option2"></label>
|
||||||
|
<input name="option1" id="option2" type="checkbox"> Check me out
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
<div>
|
||||||
|
<a href="#" class="small">learn more</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
</authz:authorize>
|
</authz:authorize>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue