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

Testing Digest auth with curl #58

Open
richhl opened this issue Jul 14, 2014 · 3 comments
Open

Testing Digest auth with curl #58

richhl opened this issue Jul 14, 2014 · 3 comments
Labels

Comments

@richhl
Copy link

richhl commented Jul 14, 2014

I configured digest auth and now testing endpoints always throws 403-forbidden.

I set absolute path for htdigest file in local.php and I set /my/valid-endpoint as digest_domain in global.php.

This is my curl test (if I disable authentication things run properly):

curl --digest -u "user:pass" -s -H "Accept: application/vnd.myexample.v1+json"     http://localhost:8080/my/valid-endpoint
@weierophinney
Copy link
Member

My guess is that the htdigest file is not created properly. Please follow the instructions here:

and let me know if you continue to see the issue.

@JaviDTM
Copy link

JaviDTM commented Feb 13, 2015

I'm having the same problem.
I've set the username and password with the command htdigest
I set apigility with http digest and established services that require authentication.
But when testing the endpoints with curl always get 403 forbidden
Have I missed configuring the settings?
Do I have to configure something else in apache?

Thanks

@michalbundyra
Copy link
Member

This repository has been closed and moved to laminas-api-tools/api-tools; a new issue has been opened at laminas-api-tools/api-tools#66.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants