There may be scenarios where you would be making a HTTPS request from a Custom Authenticator to an external service in order to establish the user identity and this request may fail with the below error
WARN 2019-02-13T13:53:50,235-0500 [unknown, #126, #434902] server.security.ExternalAuthenticator: The call to the CustomAuthenticator failed, the user will not be authenticated
org.springframework.web.client.ResourceAccessException: I/O error on GET request for "https://myserver/userinfo":
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requested target; nested exception is javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException:
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target