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 .