Redirect URI now displayed on approval page.

pull/105/merge
Michael Jett 13 years ago
parent 84aa451095
commit 30addb5439

@ -61,9 +61,12 @@ public class OAuthConfirmationController {
if (client == null) {
throw new ClientNotFoundException("Client not found: " + clientAuth.getClientId());
}
String redirect_uri = clientAuth.getAuthorizationParameters().get("redirect_uri");
modelAndView.addObject("auth_request", clientAuth);
modelAndView.addObject("client", client);
modelAndView.addObject("redirect_uri", redirect_uri);
modelAndView.setViewName("oauth/approve");
return modelAndView;

@ -76,12 +76,15 @@
<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"/>
&nbsp;
<input name="deny" value="Deny" type="submit" onclick="$('#user_oauth_approval').attr('value',false)"
class="btn btn-secondary btn-large"/>
</div>
<small>
<strong>Redirect URI: </strong><c:out value="${redirect_uri}"/>
</small>
</form>
</authz:authorize>

Loading…
Cancel
Save