You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have basic auth implemented on top of my Satis server, since I'm using it to serve packages that I sell access to. However, when my auth returns a 401 Unauthorized error, instead of the package install failing right then, Composer tries to download the source from GitHub, and since the source repository is private, prompts the user for a GitHub OAuth token.
Is there some way to prevent this? It's a bit confusing for the end user.
Thanks for all your work on Satis and Composer!
The text was updated successfully, but these errors were encountered:
jlevers
changed the title
Avoid prompting for GitHub OAuth token when dist install fails
Avoid prompting for GitHub OAuth token when dist install authentication fails
Aug 24, 2024
Adding username and password to the additional "packagist" URL that is included in every composer.json should do the trick, but may violate the intention why you have basic auth in place.
It works for me for years for an SVN hosted repo (don't ask why SVN is involved...) which requires basic auth, and is using a single public username and known password for everybody.
Thanks @SvenRtbg -- yeah, unfortunately I kinda need the auth to work on a per-user basis, because some people will have access to packages that other won't :)
I have basic auth implemented on top of my Satis server, since I'm using it to serve packages that I sell access to. However, when my auth returns a 401 Unauthorized error, instead of the package install failing right then, Composer tries to download the source from GitHub, and since the source repository is private, prompts the user for a GitHub OAuth token.
Is there some way to prevent this? It's a bit confusing for the end user.
Thanks for all your work on Satis and Composer!
The text was updated successfully, but these errors were encountered: