Redirect URI now displayed on approval page.

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

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

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

Loading…
Cancel
Save