Fixed ApiAuthenticationProvider unable to authenticate basic auth