Recently I had some problems with the scenario that I published earlier with composer being unable to find auth data so I posted an update there. Refer to the new code at that post if you experience the same problem

To summarize, it uses an env variable instead of a file now