瀏覽代碼

Generate Shared Test SAML Response

Issue gh-13433
Josh Cummings 2 年之前
父節點
當前提交
8d0e426654

File diff suppressed because it is too large
+ 10 - 0
config/src/test/java/org/springframework/security/config/annotation/web/configurers/saml2/Saml2LoginConfigurerTests.java


File diff suppressed because it is too large
+ 15 - 0
config/src/test/java/org/springframework/security/config/http/Saml2LoginBeanDefinitionParserTests.java


+ 3 - 2
saml2/saml2-service-provider/src/test/java/org/springframework/security/saml2/provider/service/authentication/TestOpenSamlObjects.java

@@ -118,7 +118,7 @@ public final class TestOpenSamlObjects {
 		return response(DESTINATION, ASSERTING_PARTY_ENTITY_ID);
 	}
 
-	static Response response(String destination, String issuerEntityId) {
+	public static Response response(String destination, String issuerEntityId) {
 		Response response = build(Response.DEFAULT_ELEMENT_NAME);
 		response.setID("R" + UUID.randomUUID().toString());
 		response.setVersion(SAMLVersion.VERSION_20);
@@ -144,7 +144,8 @@ public final class TestOpenSamlObjects {
 		return assertion(USERNAME, ASSERTING_PARTY_ENTITY_ID, RELYING_PARTY_ENTITY_ID, DESTINATION);
 	}
 
-	static Assertion assertion(String username, String issuerEntityId, String recipientEntityId, String recipientUri) {
+	public static Assertion assertion(String username, String issuerEntityId, String recipientEntityId,
+			String recipientUri) {
 		Assertion assertion = build(Assertion.DEFAULT_ELEMENT_NAME);
 		assertion.setID("A" + UUID.randomUUID().toString());
 		assertion.setVersion(SAMLVersion.VERSION_20);

Some files were not shown because too many files changed in this diff