-
Bug
-
Resolution: Done
-
Medium
-
Casablanca Release
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