Skip to content

Commit 7b4fc46

Browse files
committed
Polish authorization consent page
Issue gh-340
1 parent 09439a1 commit 7b4fc46

File tree

2 files changed

+2
-2
lines changed
  • oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/web

2 files changed

+2
-2
lines changed

oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/web/OAuth2AuthorizationEndpointFilter.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ private static String generateConsentPage(HttpServletRequest request,
406406
builder.append(" <button class=\"btn btn-primary btn-lg\" type=\"submit\">Submit Consent</button>");
407407
builder.append(" </div>");
408408
builder.append(" <div class=\"form-group\">");
409-
builder.append(" <button class=\"btn btn-link regular\" type=\"submit\">Cancel</button>");
409+
builder.append(" <button class=\"btn btn-link regular\" type=\"reset\">Cancel</button>");
410410
builder.append(" </div>");
411411
builder.append(" </form>");
412412
builder.append(" </div>");

samples/boot/oauth2-integration/authorizationserver-custom-consent-page/src/main/resources/templates/consent.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ <h1 class="text-center text-primary">App permissions</h1>
6464
</button>
6565
</div>
6666
<div class="form-group">
67-
<button class="btn btn-link regular" type="submit">
67+
<button class="btn btn-link regular" type="reset">
6868
Cancel
6969
</button>
7070
</div>

0 commit comments

Comments
 (0)