Class DefaultRedirectUriCreationFunctionTest


  • public class DefaultRedirectUriCreationFunctionTest
    extends Object
    Tests for DefaultRedirectUriCreationFunction.
    • Field Detail

      • strategy

        private net.shibboleth.idp.plugin.authn.oidc.rp.impl.DefaultRedirectUriCreationFunction strategy
        The action to test.
      • clientContext

        private net.shibboleth.idp.plugin.authn.oidc.rp.context.OAuth2ClientContext clientContext
        Created client context.
    • Constructor Detail

      • DefaultRedirectUriCreationFunctionTest

        public DefaultRedirectUriCreationFunctionTest()
    • Method Detail

      • testComputedRedirectAllowed

        public final void testComputedRedirectAllowed()
                                               throws Exception
        Test redirect URI is allowed and built.
        Throws:
        Exception - on error
      • testComputedRedirectDisallowed

        public final void testComputedRedirectDisallowed()
                                                  throws Exception
        Test redirect URI is disallowed and not built.
        Throws:
        Exception - on error
      • testComputedRedirectDisallowedNotOrigins

        public final void testComputedRedirectDisallowedNotOrigins()
                                                            throws Exception
        Test redirect URI is disallowed on the origin.
        Throws:
        Exception - on error
      • testComputedRedirectAllowedHTTPSCustomPort

        public final void testComputedRedirectAllowedHTTPSCustomPort()
                                                              throws Exception
        Test redirect URI is allowed and built using a custom HTTPS port.
        Throws:
        Exception - on error
      • testComputedRedirectAllowedHTTPCustomPort

        public final void testComputedRedirectAllowedHTTPCustomPort()
                                                             throws Exception
        Test redirect URI is allowed and built using a custom HTTP port.
        Throws:
        Exception - on error
      • testComputedRedirectAllowedNullPort

        public final void testComputedRedirectAllowedNullPort()
                                                       throws Exception
        Test redirect URI is allowed and built using a null port (assume the default).
        Throws:
        Exception - on error
      • testComputedRedirectDisallowedOnPort

        public final void testComputedRedirectDisallowedOnPort()
                                                        throws Exception
        Test redirect URI is disallowed on port.
        Throws:
        Exception - on error
      • testPreregisteredURL

        public final void testPreregisteredURL()
                                        throws Exception
        Test redirect URI is allowed and built using a pre-registered URL.
        Throws:
        Exception - on error
      • testComputedRedirectBadHostname

        public final void testComputedRedirectBadHostname()
                                                   throws Exception
        Test redirect URI is disallowed and not built when using an injected, malicious, hostname header.
        Throws:
        Exception - on error