I noticed something while setting up a new Trellis project yesterday: the docs at Composer HTTP Basic Authentication | Trellis Docs | Roots only explain adding http-basic as a supported Composer auth.json type. Worse, they say “only HTTP basic authentication is supported”.
But this is not so! @TangRufus added support for the bearer, gitlab-oauth, gitlab-token, github-oauth, and bitbucket-oauth authentication types in https://github.com/roots/trellis/pull/1413 a couple years ago.
And I know it works 'cause I use it
. It’s wonderful for adding private git repos as dependencies in Bedrock.
I’m guessing a documentation update fell through the cracks. I figured I should post about it here so more people know about the feature, and hopefully spur a correction in the docs.