17 Commits (56805ecafe8597a07b4576b45e5532b9862fd65a)

Author SHA1 Message Date
Jordi Boggiano bf125295df Fix escaping of URLs in Perforce and Subversion drivers 6 years ago
Jordi Boggiano 2eb69cd679 Always recommend using global config to store auth tokens 7 years ago
Jordi Boggiano 122e422682 CS fixes 7 years ago
Jordi Boggiano c8cf24daad Minor tweaks and CS fixes to new bitbucket integration, refs #6094 7 years ago
Stefan Grootscholten 4377ba2bcb Implement changes after review by stof.
- Use camelCase variable names.
- Set 3rd argument of http_build_query
- Remove obsolete checks
8 years ago
Stefan Grootscholten a4af559ca8 Store access-token for re-use
Store the Bitbucket access-token (and the expiration time) so it can be re-used within the time it is valid.
The Bitbucket::requestToken and Bitbucket::getToken now only return the access-token and not all other parameters it receives from the Bitbucket API.
8 years ago
Stefan Grootscholten 5a31c75289 Fix some of the remaining OAuth issues.
- Bitbucket will silently redirect to a login page when downloading a zip.
Added a check to see if the content-type is not text/html
- Make the path from Basic Authentication to OAuth as smooth as possible.
8 years ago
Jordi Boggiano efb24846cb Merge branch '1.1' 8 years ago
Stefan Grootscholten ea11a95359 Provide fallback when using basic authentication.
When composer is configured to use bitbucket basic authentication (a bitbucket username and password), you get an error
when trying to install dependencies.
This commit prevent the install process to be aborted due to uncaught exceptions.
8 years ago
Stefan Grootscholten 0e500d4c91 Make API URL available for external use. 8 years ago
Carl Craig e43912735b Update bitbucket oauth instructions 8 years ago
Jordi Boggiano 3b0a1c6f70 Run cs fixer and update config to latest master 8 years ago
Jordi Boggiano fc57cc8d7e Remove changes in StreamContextFactory, refs #5055 8 years ago
Paul Wenke 9059d70ba0 Corrected username / access token parameters for $this->io->setAuthentication when read from git config. Grant type is now only set when requesting an access token. Removed bitbucket-domains and bitbucket-protocols from config. Fixed bitbucket typo in JsonConfigSource. Removed unecessary comments. Changed visibility of Composer/Util/Bitbucket properties to private. Added https to bitbucket url. Removed unused $note variable. 8 years ago
Paul.Wenke b4d9d0fd0d Added BitbucketTest class. Added is_array and is_object check to http content before calling http_build_query. 8 years ago
Paul Wenke d2c5479b2d Updated documentation and fixed formatting in Bitbucket Util. 8 years ago
Paul Wenke d5332a1b5c Developed bitbucket-oauth functionality. 8 years ago