Class UserInfoEndpointLookupTest


  • public class UserInfoEndpointLookupTest
    extends AbstractOIDCTest
    Tests for the UserInfoEndpointLookup action.
    • Field Detail

      • action

        @Nonnull
        private net.shibboleth.idp.plugin.authn.oidc.rp.impl.UserInfoEndpointLookup action
        The action to test.
    • Constructor Detail

      • UserInfoEndpointLookupTest

        public UserInfoEndpointLookupTest()
    • Method Detail

      • testLookupSuccess

        public void testLookupSuccess()
                               throws Exception
        Test the token exchange works using a mocked HTTP client and response. Does not check the signature is valid. Given the amount of mocking, is not a very thorough test.
        Throws:
        Exception - on error.
      • testUserInfoLookup_ErrorResponse

        public void testUserInfoLookup_ErrorResponse()
                                              throws Exception
        Throws:
        Exception
      • testNullUserInfoResponse

        public void testNullUserInfoResponse()
                                      throws Exception
        Throws:
        Exception