File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
toolkit/src/test/java/com/onelogin/saml2/test Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -742,6 +742,7 @@ public void testIsAuthenticated() throws Exception {
742742 assertFalse (auth .getErrors ().isEmpty ());
743743 List <String > expectedErrors = new ArrayList <String >();
744744 expectedErrors .add ("invalid_response" );
745+ expectedErrors .add ("urn:oasis:names:tc:SAML:2.0:status:Success" );
745746 assertEquals (expectedErrors , auth .getErrors ());
746747 assertEquals ("SAML Response must contain 1 Assertion." , auth .getLastErrorReason ());
747748
@@ -755,6 +756,7 @@ public void testIsAuthenticated() throws Exception {
755756 assertFalse (auth2 .getErrors ().isEmpty ());
756757 expectedErrors = new ArrayList <String >();
757758 expectedErrors .add ("invalid_response" );
759+ expectedErrors .add ("urn:oasis:names:tc:SAML:2.0:status:Success" );
758760 assertEquals (expectedErrors , auth2 .getErrors ());
759761 assertThat (auth2 .getLastErrorReason (), containsString ("Invalid issuer in the Assertion/Response" ));
760762
You can’t perform that action at this time.
0 commit comments