Sfoglia il codice sorgente

Update Asserted Login Page Error Message

See spring-projects/spring-security#16484
Josh Cummings 1 mese fa
parent
commit
14c5f9150d

+ 2 - 2
servlet/spring-boot/java/oauth2/login/src/integTest/java/example/OAuth2LoginApplicationTests.java

@@ -234,7 +234,7 @@ public class OAuth2LoginApplicationTests {
 
 		HtmlElement errorElement = page.getBody().getFirstByXPath("div");
 		assertThat(errorElement).isNotNull();
-		assertThat(errorElement.asNormalizedText()).contains("authorization_request_not_found");
+		assertThat(errorElement.asNormalizedText()).contains("Invalid credentials");
 	}
 
 	@Test
@@ -265,7 +265,7 @@ public class OAuth2LoginApplicationTests {
 
 		HtmlElement errorElement = page.getBody().getFirstByXPath("div");
 		assertThat(errorElement).isNotNull();
-		assertThat(errorElement.asNormalizedText()).contains("authorization_request_not_found");
+		assertThat(errorElement.asNormalizedText()).contains("Invalid credentials");
 	}
 
 	@Test