Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing Digest auth with curl #66

Open
michalbundyra opened this issue Jan 10, 2020 · 2 comments
Open

Testing Digest auth with curl #66

michalbundyra opened this issue Jan 10, 2020 · 2 comments
Labels
Question Further information is requested

Comments

@michalbundyra
Copy link
Member

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

Originally posted by @richhl at zfcampus/zf-apigility#58

@michalbundyra michalbundyra added the Question Further information is requested label Jan 10, 2020
@michalbundyra
Copy link
Member Author

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.


Originally posted by @weierophinney at zfcampus/zf-apigility#58 (comment)

@michalbundyra
Copy link
Member Author

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


Originally posted by @JaviDTM at zfcampus/zf-apigility#58 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant