Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

added basic support for digest authentication on curl adapters #7329

Closed
wants to merge 3 commits into from
Closed

added basic support for digest authentication on curl adapters #7329

wants to merge 3 commits into from

Conversation

yp28
Copy link
Contributor

@yp28 yp28 commented Mar 16, 2015

Missed it, added basic support for HTTP Digest authentication on cURL requests.

@weierophinney
Copy link
Member

Please supply unit tests, if at all possible. (You have until 19 March 2015 to do so if you want to see this included in 2.4).

The unit test could test that prepareHeader() prepares the DIGEST authentication headers (you can use reflection to make the method accessible so you can invoke it from the test).

@yp28
Copy link
Contributor Author

yp28 commented Mar 18, 2015

Thanks for your feedback. I have to say, this is my first time contributing to an open source project, and I'm not familiar with pull requests either.

I'd like to contribute, so any feedback on how and what I should do or how I can improve is much appreciated. Everyone has to start somewhere, right? ;-)

@weierophinney
Copy link
Member

@yp28 test looks great!

Only issue I have is coding standards; I'll take care of them on merge, however. In the future, you can take care of them yourself quite easily.

  • Run composer install from the project root.
  • Then run vendor/bin/php-cs-fixer fix {filename} --config-file=.php_cs on each file you've changed.
  • Review the changes introduced, and commit them.

weierophinney added a commit that referenced this pull request Mar 18, 2015
added basic support for digest authentication on curl adapters
weierophinney added a commit that referenced this pull request Mar 18, 2015
- method returns an associative array, not an array of header lines.
weierophinney added a commit that referenced this pull request Mar 18, 2015
@weierophinney
Copy link
Member

Merged to develop for release with 2.4.

@yp28
Copy link
Contributor Author

yp28 commented Mar 18, 2015

Awesome, thanks for the feedback! Added this page as a bookmark for personal future reference.

@yp28 yp28 deleted the http-digest-authentication-basic branch March 19, 2015 22:10
weierophinney added a commit to zendframework/zend-http that referenced this pull request May 15, 2015
…gest-authentication-basic

added basic support for digest authentication on curl adapters
weierophinney added a commit to zendframework/zend-http that referenced this pull request May 15, 2015
- method returns an associative array, not an array of header lines.
weierophinney added a commit to zendframework/zend-http that referenced this pull request May 15, 2015
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants