Class OIDCRPFlowPreRedirectTest

  • All Implemented Interfaces:
    junit.framework.Test

    public class OIDCRPFlowPreRedirectTest
    extends OIDCRPFlowTest
    RP Flow tests for flows actions that build the authentication request before being redirected to the OP. Uses configuration from the loaded XML configuration files — unlike OIDCRPFlowFromAuthenticationResponseTest which needs to build the configuration programatically because the initial seeding of the configuration only happens pre-authn redirect.
    • Field Detail

      • log

        @Nonnull
        private final org.slf4j.Logger log
        Class logger.
    • Constructor Detail

      • OIDCRPFlowPreRedirectTest

        public OIDCRPFlowPreRedirectTest()
    • Method Detail

      • testFlowToAuthorizationRedirect

        public void testFlowToAuthorizationRedirect()
                                             throws Exception
        Test the flow running to the authorization redirect using default, basic, settings.
        Throws:
        Exception - on error.
      • testUsingRequestObject

        public void testUsingRequestObject()
                                    throws Exception
        Test the flow to the authorization redirect using an OP whose RP config in XML is set to use a request object. The request object will be signed by not encrypted by default.
        Throws:
        Exception - on error.
      • testUsingRequestObject_WithEncryption

        public void testUsingRequestObject_WithEncryption()
                                                   throws Exception
        Test the flow to the authorization redirect using an OP whose RP config in XML is set to use a request object, and the RP is configured to create a JWE request object.
        Throws:
        Exception - on error.
      • testUsingRequestObject_RSA256Signature

        public void testUsingRequestObject_RSA256Signature()
                                                    throws Exception
        Test the flow to the authorization redirect using an OP who's RP config in XML is set to use a request object. Configuration restricts the OP to only accepting RS256 signed request objects. So the RP must choose that.
        Throws:
        Exception - on error.
      • testFail_UsingRequestObject_UnsupportedSignatureAlgorithm

        public void testFail_UsingRequestObject_UnsupportedSignatureAlgorithm()
                                                                       throws Exception
        Test the flow to the authorization redirect using an OP who's RP config in XML is set to use a request object. The OP and RP do not support the same set of signature algorithms, so this should fail.
        Throws:
        Exception - on error.
      • testWithACRs

        public void testWithACRs()
                          throws Exception
        Test the flow to the authorization redirect and add an authentication context class requested principal.
        Throws:
        Exception - on error.