47 Commits (bd6403a6bef36fdbefdb287dc7e26286d5e06e5e)

Author SHA1 Message Date
Jordi Boggiano bd6403a6be
Fix newly surfaced errors 2 years ago
Jordi Boggiano beb575dd00
Fix more issues, update baseline (2203/106) 2 years ago
Jordi Boggiano 6a466a120a
Enable strict types on all files 2 years ago
Jordi Boggiano 6da38f83a0
Add parameter types to all the things 2 years ago
Jordi Boggiano bab974575c
Merge branch '2.2' into main 2 years ago
Jordi Boggiano e3d99cac59
Fix phpstan issues, update baseline and pin PHPStan version in 2.2 branch (#10474) 2 years ago
Jordi Boggiano bf72afec44
Fix Symfony6 compat 2 years ago
Shyim 70425900e9
Fix symfony error handler warnings, fixes #10397 (#10404) 2 years ago
Jordi Boggiano 24ce1eddbd
Add composer/pcre dependency and use it everywhere instead of preg_* 2 years ago
Jordi Boggiano c65d09dff7
Fix @inheritDoc annotations 3 years ago
immeëmosol 6d5f6eb090
Reaching phpstan level 6 in Composer\IO (#10166) 3 years ago
Jordi Boggiano 0761474599
Add type info to many properties/methods 3 years ago
Jordi Boggiano 059b5b197d
Merge branch '2.0' 3 years ago
Jordi Boggiano c81562b343
Merge branch '1.10' into 2.0 3 years ago
Jordi Boggiano 54889ca109
Document GH token usage and also make sure we redact them in Process debug output, refs #9757 3 years ago
Ayesh Karunaratne dc83ba93f3
Update GitHub token pattern
GitHub is updating the format of auth tokens from `a-z0-9` to `A-Za-z0-9` ([notice](https://github.blog/changelog/2021-03-04-authentication-token-format-updates/)).
I'm not sure why `.` is allowed, but I dare not to remove it. In this PR, the token validation regex is updated to allow `A-Za-z0-9` instead of the current all lower-case `a-z` and disallowed `_`.
3 years ago
Jordi Boggiano 4940009f83
Bump phpstan to level 3 (#9734)
Clean up PackageInterface/CompletePackageInterface, add missing methods, type things in solver as BasePackage, added CompleteAliasPackage, ..
3 years ago
Simon Berger 002fd39bc6 Removed passing of parameters with default value 4 years ago
Matěj Kmínek a074819a51
Add support for gitlab deploy token (#8867)
* feat: Added ability to work with GitLab deploy tokens: https://docs.gitlab.com/ee/user/project/deploy_tokens/

Deploy tokens can be specified two ways:
1) GIT CONFIG:
git config --add gitlab.deploytoken.user USERNAME && git config --add gitlab.deploytoken.token TOKEN
2) Auth.json:
"gitlab-token": {
    "gitlab.com": {"username": "USERNAME", "token": "TOKEN"}
}
4 years ago
Jordi Boggiano d63eb8179e
Merge branch 'master' into 2.0 4 years ago
Ethan Clevenger cbec8ceb53 Bearer support. 4 years ago
Jordi Boggiano 23359f2db6
Merge branch 'master' into 2.0 4 years ago
Jordi Boggiano d3f1c664d4
Avoid formatting output from external processes, fixes #8524 4 years ago
Jordi Boggiano 6c4357a7ed
Merge branch 'master' into 2.0 5 years ago
Jordi Boggiano 8958f40f94
Make sure resetting composer also resets the IO and configuration, fixes #8224 5 years ago
Jordi Boggiano 6c782599f1
Make IOInterface implement psr-4 LoggerInterface, fixes #5180 5 years ago
Jordi Boggiano 122e422682 CS fixes 7 years ago
Nils Adermann ad41c324d3 GitHub integrations generate access tokens containing a dot 8 years ago
moyo c4ac59601f Update related docs and config definitions 8 years ago
Jordi Boggiano b1723644e0 Use extracted ca-bundle package 8 years ago
David Zuelke cf43244f85 fix config add/remove/unset/merge for bitbucket 8 years ago
Paul Wenke d5332a1b5c Developed bitbucket-oauth functionality. 8 years ago
Jordi Boggiano 6d1e8ebf90 Avoid warnings due to duplicate loading of auth files, fixes #4971 8 years ago
Nikolay Labinskiy 957e1ccb47 4936: warn user about auth overwriting 8 years ago
Jordi Boggiano 7c3e621102 Make sure COMPOSER_AUTH is also loaded in Config, refs #4546 8 years ago
Jordi Boggiano 2617ec5d28 Use proper defaults for IO authentications 8 years ago
Jordi Boggiano 593b88e414 Let users configure *any auth* via COMPOSER_AUTH and add it to the docs, refs #4546 8 years ago
Oliver Vartiainen b39b113fc3 Handle envvar auth credentials as a JSON blob
As well as move the handling to a proper place
8 years ago
Jérôme Tamarelle ac68a721f4 Merge remote-tracking branch 'composer/master' into gitlab
Conflicts:
	doc/04-schema.md
	src/Composer/Util/RemoteFilesystem.php
9 years ago
Jordi Boggiano 2e73811211 Fix process timeout not being initialized correctly when loading a config without creating a full composer instance, closes #3952, fixes #3946 9 years ago
Roshan Gautam f870396568 Add oauth2 support for gitlab 9 years ago
Henrik Bjørnskov 782c6303bc Initial GitLab Driver
This is a proof of concept, and mostly done to gather feedback on the
structure of the driver and to see if this is something that Composer
should include in core.

Various review changes based on Stof comments.

* Remove cleanup() as it is implemented by the abstract class.
* Remove wrong comment in getReferences
* Implement getSource (as GitHubDriver does)
* Finish phpDocs for methods.
9 years ago
Jordi Boggiano 90d1b6e08a Rename basic-auth to http-basic, add docs/schema/config support, add local auth file support, add storage to auth.json, add store-auths config option, refs #1862 10 years ago
Nicolas Bastien 52711d121c Remove unused use statement. 11 years ago
Jordi Boggiano d2ef829cc6 Fix typo 11 years ago
Jordi Boggiano 70523a191d Mark class as abstract 11 years ago
Jordi Boggiano 14fcff8aa8 Allow the authentications to be loaded in the IO independently 11 years ago