From b14dfa6458a7e30780d5102e7dd4ef1bca20a764 Mon Sep 17 00:00:00 2001 From: Justin Richer Date: Thu, 13 Nov 2014 11:23:54 -1000 Subject: [PATCH] approval page defaults to "ask again" when prompt=consent is passed, closes #669 --- .../src/main/webapp/WEB-INF/views/approve.jsp | 4 ++-- .../org/mitre/oauth2/web/OAuthConfirmationController.java | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/openid-connect-server-webapp/src/main/webapp/WEB-INF/views/approve.jsp b/openid-connect-server-webapp/src/main/webapp/WEB-INF/views/approve.jsp index a7a98d7bf..a3ee5133f 100644 --- a/openid-connect-server-webapp/src/main/webapp/WEB-INF/views/approve.jsp +++ b/openid-connect-server-webapp/src/main/webapp/WEB-INF/views/approve.jsp @@ -208,7 +208,7 @@
Remember this decision:
diff --git a/openid-connect-server/src/main/java/org/mitre/oauth2/web/OAuthConfirmationController.java b/openid-connect-server/src/main/java/org/mitre/oauth2/web/OAuthConfirmationController.java index 8c9451481..e1858202a 100644 --- a/openid-connect-server/src/main/java/org/mitre/oauth2/web/OAuthConfirmationController.java +++ b/openid-connect-server/src/main/java/org/mitre/oauth2/web/OAuthConfirmationController.java @@ -102,6 +102,10 @@ public class OAuthConfirmationController { model.put("code", HttpStatus.FORBIDDEN); return HttpCodeView.VIEWNAME; } + + if (prompts.contains("consent")) { + model.put("consent", true); + } //AuthorizationRequest clientAuth = (AuthorizationRequest) model.remove("authorizationRequest");