1
0
mirror of synced 2026-07-19 17:45:11 +00:00

Polish OpenSamlAuthenticationProviderTests

- Add missing assertion

Issue gh-6019
This commit is contained in:
Josh Cummings
2020-04-17 09:16:16 -06:00
parent 2289ad5e35
commit af433fdbdf
@@ -116,6 +116,13 @@ public class OpenSamlAuthenticationProviderTests {
@Test
public void authenticateWhenInvalidDestinationThenThrowAuthenticationException() {
Response response = response(recipientUri + "invalid", idpEntityId);
Assertion assertion = defaultAssertion();
signXmlObject(
assertion,
assertingPartyCredentials(),
recipientEntityId
);
response.getAssertions().add(assertion);
token = responseXml(response);
exception.expect(authenticationMatcher(Saml2ErrorCodes.INVALID_DESTINATION));
provider.authenticate(token);