Class AudValidationTest

  • All Implemented Interfaces:
    org.testng.IHookable, org.testng.ITestNGListener

    public class AudValidationTest
    extends org.jboss.arquillian.testng.Arquillian
    Validate the handling of the JWT aud claim. Validate the aud claim against the Names.AUDIENCES property is performed, and passes if the jwt aud is contained in the Names.AUDIENCES property. This test checks against a claim containing a single values.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.jboss.arquillian.testng.Arquillian

        org.jboss.arquillian.testng.Arquillian.UpdateResultListener
    • Field Summary

      • Fields inherited from class org.jboss.arquillian.testng.Arquillian

        ARQUILLIAN_DATA_PROVIDER
    • Constructor Detail

      • AudValidationTest

        public AudValidationTest()
    • Method Detail

      • createDeployment

        @Deployment
        public static org.jboss.shrinkwrap.api.spec.WebArchive createDeployment()
                                                                         throws Exception
        Create a CDI aware base web application archive that includes an embedded PEM public key that is included as the mp.jwt.verify.publickey property. The root url is /
        Returns:
        the base base web application archive
        Throws:
        Exception - - on resource failure
      • testRequiredAudMatch

        @RunAsClient
        public void testRequiredAudMatch()
                                  throws Exception
        Throws:
        Exception