Class DefaultEventRequiresCSRFTokenValidationPredicateTest

java.lang.Object
net.shibboleth.idp.ui.csrf.BaseCSRFTest
net.shibboleth.idp.ui.csrf.impl.DefaultEventRequiresCSRFTokenValidationPredicateTest

public class DefaultEventRequiresCSRFTokenValidationPredicateTest extends BaseCSRFTest
Tests the DefaultEventRequiresCSRFTokenValidationPredicate. See also BaseCSRFTokenPredicateTest for more detailed testing of the included and excluded view states.
  • Constructor Details

    • DefaultEventRequiresCSRFTokenValidationPredicateTest

      public DefaultEventRequiresCSRFTokenValidationPredicateTest()
  • Method Details

    • testEventRequiresCSRFTokenValidation

      public void testEventRequiresCSRFTokenValidation()
      Test event and view requires CSRF verification.
    • testARandomEventIdIsEvaluated

      public void testARandomEventIdIsEvaluated()
      Test a random eventId, as all eventIds should be included.
    • testEventDoesNotRequiresCSRFTokenValidationExcludedState

      public void testEventDoesNotRequiresCSRFTokenValidationExcludedState()
      Test that token verification is not required if state is excluded.