Jump to content

REST & OAuth


Rashed Ahmed

Recommended Posts

Posted

Hi everyone,

I am looking for someone who can help me fix my REST & OAuth error.

I have done all the steps required, but it keeps showing me this:

 

The API endpoint is not giving the expected response. Check you followed the instructions correctly. The URL being tested is: https://forum.grinderscape.org/api/index.php?/core/hello

In order to use the REST API:

  1. Download this file.
  2. Upload it to the /api folder in your site's directory (/home/forum/public_html/api).
  3. Rename it to '.htaccess' (with no file name).

I am certainly sure I have done all the steps right, but still shows this. If you go to the link above it throws a 401 if you check in the chrome inspect network. Could it be something with Cloudflare? but what exactly do I have to disable or do?

Please someone help, willing to pay if required.

 

Posted

It looks like for some reason your server isn't passing the HTTP Authorization header to PHP. If your server running Apache or nginx? PHP running as an apache module, cgi or fastcgi?

Posted

You should probably ask your hosting provider. The issue is that the HTTP Authorization header isn't being sent to the PHP script... if you're running nginx, or PHP in a mode that doesn't support .htaccess files, you probably need whoever manages the server to modify something in the server configuration. But if you're not sure what your server is running, it's difficult to advise what that might be.

Your hosting provider should be able to sort it.

Posted

Well the thing is I am the one who is managing the server, but not really sure what to do. It's self-managed server. If there is anything you'd recommend that would be appreciated.

If anything I can try or mess with let me know.

Posted

If you are managing your own server, I would suggest step 1 is probably to find out if you are using Apache, nginx, or a combination of the two. I'm afraid some level of server management knowledge is going to be needed if you are managing your own server.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...