Uploaded image for project: 'Logging analytics'
  1. Logging analytics
  2. LOG-696

Service Decomposition service doesn't implement basic auth to AAI

XMLWordPrintable

      the code that constructs the AAI rest client doesn’t include the basicAuthUsername or basicAuthPassword builder methods, nor are there any properties for specifying the basic auth username/password for AAI.

       

       

          @Bean(name="aaiClient")

          public RestClient restClient()

      {         *return* *new* RestClient()                 .validateServerHostname(*false*)                 .validateServerCertChain(*false*)                 .connectTimeoutMs(*this*.connectionTimeout)                 .readTimeoutMs(*this*.readTimeout);     }

       

      However, I think this code was original adapted from an https client, with SSL certificates providing the necessary security.  I guess in the absence of SSL, basic auth is better than nothing.

       

      The aai-context-builder is using basic auth in A&AI queries – that could easily be ported to service-decomposition.

       

      Brad

            moreza moreza
            dstangl dstangl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day
                1d