Merge custom-consent-authorizationserver into featured-authorizationserver
Issue gh-1189
This commit is contained in:
@@ -81,7 +81,7 @@ public class FeaturedAuthorizationServerConsentTests {
|
||||
@WithMockUser("user1")
|
||||
public void whenUserConsentsToAllScopesThenReturnAuthorizationCode() throws IOException {
|
||||
final HtmlPage consentPage = this.webClient.getPage(this.authorizationRequestUri);
|
||||
assertThat(consentPage.getTitleText()).isEqualTo("Consent required");
|
||||
assertThat(consentPage.getTitleText()).isEqualTo("Custom consent page - Consent required");
|
||||
|
||||
List<HtmlCheckBoxInput> scopes = new ArrayList<>();
|
||||
consentPage.querySelectorAll("input[name='scope']").forEach(scope ->
|
||||
@@ -111,7 +111,7 @@ public class FeaturedAuthorizationServerConsentTests {
|
||||
@WithMockUser("user1")
|
||||
public void whenUserCancelsConsentThenReturnAccessDeniedError() throws IOException {
|
||||
final HtmlPage consentPage = this.webClient.getPage(this.authorizationRequestUri);
|
||||
assertThat(consentPage.getTitleText()).isEqualTo("Consent required");
|
||||
assertThat(consentPage.getTitleText()).isEqualTo("Custom consent page - Consent required");
|
||||
|
||||
DomElement cancelConsentButton = consentPage.querySelector("button[id='cancel-consent']");
|
||||
this.webClient.getOptions().setRedirectEnabled(false);
|
||||
|
||||
Reference in New Issue
Block a user