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

API Authorization Problems #1356

Closed
dmklnc opened this issue Apr 20, 2023 · 2 comments
Closed

API Authorization Problems #1356

dmklnc opened this issue Apr 20, 2023 · 2 comments

Comments

@dmklnc
Copy link

dmklnc commented Apr 20, 2023

Hi,

it is somehow not possible for me to connect to the API Endpoint.
Trying to connect to https://www.aerobw.de/index.php/api/v1/providers with my user credentials but I always get the message "You are not authorized to use the API."

In the documention it is said to add
fastcgi_param PHP_AUTH_USER $remote_user; fastcgi_param PHP_AUTH_PW $http_authorization;
to my nginx configuration.

The error still occurs. I am quite new to API and would appreciate help!

Cheers
Dean

@alextselegidis
Copy link
Owner

Hello!

Hmm I haven't seen this issue before, but the problem is definitely that PHP will not get access to the Authorization header and thus Basic auth will not work.

Could it be that the fastcgi_param is not set in the php-fpm block of the NGINX conf?

Alex Tselegidis, Easy!Appointments Creator
Need a customization? Get a free quote!

@alextselegidis
Copy link
Owner

Closing this due to inactivity.

Alex Tselegidis, Easy!Appointments Creator
Need a customization? Get a free quote!

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

No branches or pull requests

2 participants