Fix cancel consent functionality on default consent page
- Fix also applies to custom consent sample Closes gh-393
This commit is contained in:
committed by
Joe Grandja
parent
4ccdd2baf4
commit
0dfe5cb44a
@@ -122,6 +122,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
|
||||
*
|
||||
* @author Joe Grandja
|
||||
* @author Daniel Garnier-Moiroux
|
||||
* @author Dmitriy Dubson
|
||||
*/
|
||||
public class OAuth2AuthorizationCodeGrantTests {
|
||||
private static final String DEFAULT_AUTHORIZATION_ENDPOINT_URI = "/oauth2/authorize";
|
||||
@@ -556,7 +557,7 @@ public class OAuth2AuthorizationCodeGrantTests {
|
||||
|
||||
private static String scopeCheckbox(String scope) {
|
||||
return MessageFormat.format(
|
||||
"<input class=\"form-check-input\" type=\"checkbox\" name=\"scope\" value=\"{0}\" id=\"{0}\">",
|
||||
"<input class=\"form-check-input scope-to-accept\" type=\"checkbox\" name=\"scope\" value=\"{0}\" id=\"{0}\">",
|
||||
scope
|
||||
);
|
||||
}
|
||||
|
||||
@@ -73,6 +73,7 @@ import static org.mockito.Mockito.when;
|
||||
* @author Joe Grandja
|
||||
* @author Daniel Garnier-Moiroux
|
||||
* @author Anoop Garlapati
|
||||
* @author Dmitriy Dubson
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public class OAuth2AuthorizationEndpointFilterTests {
|
||||
@@ -574,7 +575,7 @@ public class OAuth2AuthorizationEndpointFilterTests {
|
||||
|
||||
private static String scopeCheckbox(String scope) {
|
||||
return MessageFormat.format(
|
||||
"<input class=\"form-check-input\" type=\"checkbox\" name=\"scope\" value=\"{0}\" id=\"{0}\">",
|
||||
"<input class=\"form-check-input scope-to-accept\" type=\"checkbox\" name=\"scope\" value=\"{0}\" id=\"{0}\">",
|
||||
scope
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user