OAuth requests not working locally #4514
-
|
I'm trying to make a request to a local API which uses three legged OAuth. But my scripts don't work locally. I've just started using ddev coming from a Vagrant setup with no code changes. The script works fine calling the production server but not locally. When I disable the authentication requirements within Drupal the script works fine. I can't work out why the the authentication won't work with ddev? The following error is reported when running the script: I'm running PHP8 with php8.0-oauth installed. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
Where are you running the script? Can you simplify it? What hostname is the script trying to hit? |
Beta Was this translation helpful? Give feedback.
-
|
The one thing I didn't check was what type of web server was running. I had left it as default I don't know why |
Beta Was this translation helpful? Give feedback.
The one thing I didn't check was what type of web server was running. I had left it as default
nginx-fpmbut once I changed it toapache-fpmthe script now works!I don't know why
nginxdoesn't work? But I can stick withapachelocally.