How to authenticate Composer in the Mage2.PRO repository (outdated)

From 2016-09-02 the recommended way is to use an SSH key authentication instead of the password authentication.

Mage2.PRO code repository is private, so you need to setup the Composer credentials.
You can do it with an auth.json file.