Class AuthorizeFlowTest

    • Constructor Detail

      • AuthorizeFlowTest

        public AuthorizeFlowTest()
    • Method Detail

      • testWithAuthorizationCodeFlow

        public void testWithAuthorizationCodeFlow()
                                           throws IOException,
                                                  net.shibboleth.idp.session.SessionException
        Throws:
        IOException
        net.shibboleth.idp.session.SessionException
      • testWithAuthorizationCodeFlowAndResource

        public void testWithAuthorizationCodeFlowAndResource()
                                                      throws IOException,
                                                             net.shibboleth.idp.session.SessionException
        Throws:
        IOException
        net.shibboleth.idp.session.SessionException
      • testWithAuthorizationCodeFlowIssInResponse

        public void testWithAuthorizationCodeFlowIssInResponse()
                                                        throws IOException,
                                                               net.shibboleth.idp.session.SessionException
        Throws:
        IOException
        net.shibboleth.idp.session.SessionException
      • testWithAuthorizationCodeFlowNoOpenid

        public void testWithAuthorizationCodeFlowNoOpenid()
                                                   throws IOException,
                                                          net.shibboleth.idp.session.SessionException
        Throws:
        IOException
        net.shibboleth.idp.session.SessionException
      • testWithAuthorizationCodeFlowNoRedirectURI

        public void testWithAuthorizationCodeFlowNoRedirectURI()
                                                        throws IOException,
                                                               net.shibboleth.idp.session.SessionException
        Throws:
        IOException
        net.shibboleth.idp.session.SessionException
      • testWithImplicitFlowNoNonce

        public void testWithImplicitFlowNoNonce()
                                         throws IOException,
                                                net.shibboleth.idp.session.SessionException
        Throws:
        IOException
        net.shibboleth.idp.session.SessionException
      • testWithImplicitFlow

        public void testWithImplicitFlow()
                                  throws IOException,
                                         net.shibboleth.idp.session.SessionException
        Throws:
        IOException
        net.shibboleth.idp.session.SessionException
      • testWithImplicitFlowIssInResponse

        public void testWithImplicitFlowIssInResponse()
                                               throws IOException,
                                                      net.shibboleth.idp.session.SessionException
        Throws:
        IOException
        net.shibboleth.idp.session.SessionException
      • testWithImplicitFlowAndResource

        public void testWithImplicitFlowAndResource()
                                             throws IOException,
                                                    net.shibboleth.idp.session.SessionException
        Throws:
        IOException
        net.shibboleth.idp.session.SessionException
      • testWithImplicitTokenFlowAndResource

        public void testWithImplicitTokenFlowAndResource()
                                                  throws IOException,
                                                         net.shibboleth.idp.session.SessionException,
                                                         ParseException
        Throws:
        IOException
        net.shibboleth.idp.session.SessionException
        ParseException
      • testWithImplicitTokenFlowNoNonce

        public void testWithImplicitTokenFlowNoNonce()
                                              throws IOException,
                                                     net.shibboleth.idp.session.SessionException
        Throws:
        IOException
        net.shibboleth.idp.session.SessionException
      • testWithImplicitFlowNoOpenIdScope

        public void testWithImplicitFlowNoOpenIdScope()
                                               throws IOException,
                                                      net.shibboleth.idp.session.SessionException
        Throws:
        IOException
        net.shibboleth.idp.session.SessionException
      • testWithImplicitFlowNoRedirectURI

        public void testWithImplicitFlowNoRedirectURI()
                                               throws IOException,
                                                      net.shibboleth.idp.session.SessionException
        Throws:
        IOException
        net.shibboleth.idp.session.SessionException
      • testWithHybridIdTokenFlow

        public void testWithHybridIdTokenFlow()
                                       throws IOException,
                                              net.shibboleth.idp.session.SessionException
        Throws:
        IOException
        net.shibboleth.idp.session.SessionException
      • testWithHybridIdTokenFlowIssInResponse

        public void testWithHybridIdTokenFlowIssInResponse()
                                                    throws IOException,
                                                           net.shibboleth.idp.session.SessionException
        Throws:
        IOException
        net.shibboleth.idp.session.SessionException
      • testWithHybridIdTokenFlowAndResource

        public void testWithHybridIdTokenFlowAndResource()
                                                  throws IOException,
                                                         net.shibboleth.idp.session.SessionException
        Throws:
        IOException
        net.shibboleth.idp.session.SessionException
      • testWithHybridIdTokenFlowNoNonce

        public void testWithHybridIdTokenFlowNoNonce()
                                              throws IOException,
                                                     net.shibboleth.idp.session.SessionException
        Throws:
        IOException
        net.shibboleth.idp.session.SessionException
      • testWithHybridIdTokenTokenFlowAndResource

        public void testWithHybridIdTokenTokenFlowAndResource()
                                                       throws IOException,
                                                              net.shibboleth.idp.session.SessionException,
                                                              ParseException
        Throws:
        IOException
        net.shibboleth.idp.session.SessionException
        ParseException
      • testWithHybridIdTokenTokenFlowNoNonce

        public void testWithHybridIdTokenTokenFlowNoNonce()
                                                   throws IOException,
                                                          net.shibboleth.idp.session.SessionException
        Throws:
        IOException
        net.shibboleth.idp.session.SessionException
      • testWithAuthorizationCodeFlowUnforcedPKCE

        public void testWithAuthorizationCodeFlowUnforcedPKCE()
                                                       throws IOException,
                                                              net.shibboleth.idp.session.SessionException
        Throws:
        IOException
        net.shibboleth.idp.session.SessionException
      • testWithAuthorizationCodeFlowForcedPlainPKCEMissingChallenge

        public void testWithAuthorizationCodeFlowForcedPlainPKCEMissingChallenge()
                                                                          throws IOException,
                                                                                 net.shibboleth.idp.session.SessionException
        Throws:
        IOException
        net.shibboleth.idp.session.SessionException
      • testWithAuthorizationCodeFlowForcedPlainPKCEUnknownChallenge

        public void testWithAuthorizationCodeFlowForcedPlainPKCEUnknownChallenge()
                                                                          throws IOException,
                                                                                 net.shibboleth.idp.session.SessionException
        Throws:
        IOException
        net.shibboleth.idp.session.SessionException
      • testWithAuthorizationCodeFlowForcedPlainPKCEValidChallenge

        public void testWithAuthorizationCodeFlowForcedPlainPKCEValidChallenge()
                                                                        throws IOException,
                                                                               net.shibboleth.idp.session.SessionException
        Throws:
        IOException
        net.shibboleth.idp.session.SessionException
      • testWithAuthorizationCodeFlowForcedS256PKCEPlainChallenge

        public void testWithAuthorizationCodeFlowForcedS256PKCEPlainChallenge()
                                                                       throws IOException,
                                                                              net.shibboleth.idp.session.SessionException
        Throws:
        IOException
        net.shibboleth.idp.session.SessionException
      • testWithAuthorizationCodeFlowForcedS256PKCEUnknownChallenge

        public void testWithAuthorizationCodeFlowForcedS256PKCEUnknownChallenge()
                                                                         throws IOException,
                                                                                net.shibboleth.idp.session.SessionException
        Throws:
        IOException
        net.shibboleth.idp.session.SessionException
      • testWithAuthorizationCodeFlowForcedS256PKCEValidChallenge

        public void testWithAuthorizationCodeFlowForcedS256PKCEValidChallenge()
                                                                       throws IOException,
                                                                              net.shibboleth.idp.session.SessionException
        Throws:
        IOException
        net.shibboleth.idp.session.SessionException
      • testWithAuthorizationCodeFlowNoScopes

        public void testWithAuthorizationCodeFlowNoScopes()
                                                   throws IOException,
                                                          net.shibboleth.idp.session.SessionException
        Throws:
        IOException
        net.shibboleth.idp.session.SessionException
      • testWithAuthorizationCodeFlowNoScopesIssInResponse

        public void testWithAuthorizationCodeFlowNoScopesIssInResponse()
                                                                throws IOException,
                                                                       net.shibboleth.idp.session.SessionException
        Throws:
        IOException
        net.shibboleth.idp.session.SessionException
      • testWithAuthorizationCodeFlowUsingSAMLMetadata

        public void testWithAuthorizationCodeFlowUsingSAMLMetadata()
                                                            throws IOException,
                                                                   net.shibboleth.idp.session.SessionException
        Throws:
        IOException
        net.shibboleth.idp.session.SessionException
      • testWithAuthorizationCodeFlowUsingUntrustedRP

        public void testWithAuthorizationCodeFlowUsingUntrustedRP()
                                                           throws IOException,
                                                                  net.shibboleth.idp.session.SessionException
        Throws:
        IOException
        net.shibboleth.idp.session.SessionException
      • testWithPlainReqObjectExpired

        public void testWithPlainReqObjectExpired()
                                           throws IOException,
                                                  net.shibboleth.idp.session.SessionException
        Throws:
        IOException
        net.shibboleth.idp.session.SessionException
      • testWithPlainReqObjectNbfInFuture

        public void testWithPlainReqObjectNbfInFuture()
                                               throws IOException,
                                                      net.shibboleth.idp.session.SessionException
        Throws:
        IOException
        net.shibboleth.idp.session.SessionException
      • testWithPlainReqObjectOverwriteRedirectUri

        public void testWithPlainReqObjectOverwriteRedirectUri()
                                                        throws IOException,
                                                               net.shibboleth.idp.session.SessionException
        Throws:
        IOException
        net.shibboleth.idp.session.SessionException
      • testWithSignedReqObjectNoIssuer

        public void testWithSignedReqObjectNoIssuer()
                                             throws IOException,
                                                    net.shibboleth.idp.session.SessionException,
                                                    com.nimbusds.jose.JOSEException
        Throws:
        IOException
        net.shibboleth.idp.session.SessionException
        com.nimbusds.jose.JOSEException
      • testWithSignedReqObjectNoAudience

        public void testWithSignedReqObjectNoAudience()
                                               throws IOException,
                                                      net.shibboleth.idp.session.SessionException,
                                                      com.nimbusds.jose.JOSEException
        Throws:
        IOException
        net.shibboleth.idp.session.SessionException
        com.nimbusds.jose.JOSEException
      • testWithSignedReqObjectWrongIssuer

        public void testWithSignedReqObjectWrongIssuer()
                                                throws IOException,
                                                       net.shibboleth.idp.session.SessionException,
                                                       com.nimbusds.jose.JOSEException
        Throws:
        IOException
        net.shibboleth.idp.session.SessionException
        com.nimbusds.jose.JOSEException
      • testWithSignedReqObjectWrongAudience

        public void testWithSignedReqObjectWrongAudience()
                                                  throws IOException,
                                                         net.shibboleth.idp.session.SessionException,
                                                         com.nimbusds.jose.JOSEException
        Throws:
        IOException
        net.shibboleth.idp.session.SessionException
        com.nimbusds.jose.JOSEException
      • testWithSignedReqObjectOverwriteRedirectUri

        public void testWithSignedReqObjectOverwriteRedirectUri()
                                                         throws IOException,
                                                                ParseException,
                                                                net.shibboleth.idp.session.SessionException,
                                                                com.nimbusds.jose.JOSEException
        Throws:
        IOException
        ParseException
        net.shibboleth.idp.session.SessionException
        com.nimbusds.jose.JOSEException
      • assertRequestObjectError

        protected void assertRequestObjectError​(com.nimbusds.jwt.JWT requestObject)
                                         throws IOException
        Throws:
        IOException
      • assertErrorResponseWithNoIssuer

        protected void assertErrorResponseWithNoIssuer​(FlowExecutionResult result)
      • assertErrorResponseWithIssuer

        protected void assertErrorResponseWithIssuer​(FlowExecutionResult result)