public AuthConfig extendedAuth(AuthConfig localCredentials) throws IOException, MojoExecutionException {
        JsonObject jo = getAuthorizationToken(localCredentials);

        JsonArray authorizationDatas = jo.getAsJsonArray("authorizationData");
        JsonObject authorizationData = authorizationDatas.get(0).getAsJsonObject();
        String authorizationToken = authorizationData.get("authorizationToken").getAsString();

        return new AuthConfig(authorizationToken, "none");
    }
Perform extended authentication.  Use the provided credentials as IAM credentials and
get a temporary ECR token.

@param localCredentials IAM id/secret
@return ECR base64 encoded username:password
@throws IOException
@throws MojoExecutionException
src/main/java/io/fabric8/maven/docker/access/ecr/EcrExtendedAuth.java