ソースを参照

Update Dependencies for Saml2 Login Sample

Josh Cummings 3 年 前
コミット
57a3de019e

+ 5 - 5
servlet/spring-boot/java/saml2/login/build.gradle

@@ -1,5 +1,5 @@
 plugins {
-	id 'org.springframework.boot' version '2.5.2'
+	id 'org.springframework.boot' version '2.7.1'
 	id 'io.spring.dependency-management' version '1.0.10.RELEASE'
 	id "nebula.integtest" version "8.2.0"
 	id 'java'
@@ -14,9 +14,9 @@ repositories {
 
 dependencies {
 	constraints {
-		implementation "org.opensaml:opensaml-core:4.1.1"
-		implementation "org.opensaml:opensaml-saml-api:4.1.1"
-		implementation "org.opensaml:opensaml-saml-impl:4.1.1"
+		implementation "org.opensaml:opensaml-core:4.2.0"
+		implementation "org.opensaml:opensaml-saml-api:4.2.0"
+		implementation "org.opensaml:opensaml-saml-impl:4.2.0"
 	}
 	implementation 'org.springframework.boot:spring-boot-starter-security'
 	implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
@@ -24,7 +24,7 @@ dependencies {
 	implementation 'org.springframework.security:spring-security-saml2-service-provider'
 	implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity5'
 
-	testImplementation 'net.sourceforge.htmlunit:htmlunit:2.44.0'
+	testImplementation 'net.sourceforge.htmlunit:htmlunit'
 	testImplementation 'org.springframework.boot:spring-boot-starter-test'
 	testImplementation 'org.springframework.security:spring-security-test'
 }

+ 0 - 1
servlet/spring-boot/java/saml2/login/gradle.properties

@@ -1,3 +1,2 @@
 version=5.8.0-SNAPSHOT
 spring-security.version=5.8.0-SNAPSHOT
-selenium-htmlunit.version=2.44.0

+ 2 - 2
servlet/spring-boot/java/saml2/login/src/integTest/java/example/Saml2LoginApplicationITests.java

@@ -89,7 +89,7 @@ public class Saml2LoginApplicationITests {
 		void authenticationAttemptWhenValidThenShowsUserEmailAddress() throws Exception {
 			performLogin("one");
 			HtmlPage home = (HtmlPage) Saml2LoginApplicationITests.this.webClient.getCurrentWindow().getEnclosedPage();
-			assertThat(home.asText()).contains("You're email address is testuser@spring.security.saml");
+			assertThat(home.asNormalizedText()).contains("You're email address is testuser@spring.security.saml");
 		}
 
 		@Test
@@ -111,7 +111,7 @@ public class Saml2LoginApplicationITests {
 		void authenticationAttemptWhenValidThenShowsUserEmailAddress() throws Exception {
 			performLogin("two");
 			HtmlPage home = (HtmlPage) Saml2LoginApplicationITests.this.webClient.getCurrentWindow().getEnclosedPage();
-			assertThat(home.asText()).contains("You're email address is testuser@spring.security.saml");
+			assertThat(home.asNormalizedText()).contains("You're email address is testuser@spring.security.saml");
 		}
 
 		@Test