403 - Forbidden username/password combo

lucian1
Kilo Contributor

Hello,

I am trying to connect with a REST message to an external api which is not hosted by Service Now.

I'm using Basic Authentication and https.

The problem is that when testing this I receive the following message:

403 - Forbidden username/password combo

Capture.PNG

Using POSTMAN, it works well: I receive the status code 200 and the expected data on the response, so I'm inclined to think that I am missing some configuration in Service Now.

Do you have any idea of what could cause the 403 error code and how to fix this?

I am using Eureka.

Thank you.

Lucian

11 REPLIES 11

sergiu_panaite
ServiceNow Employee
ServiceNow Employee

Hi Lucian,



Usually an HTTP 403 indicates that user is forbidden rights to the resource on the webserver.



Now, as far as I know for example Apache web server can return HTTP 403 if directory listing is disabled.



Are you sure user rights are ok on the web server?



Regards,


Sergiu


Hi Sergiu and thanks for replying.



I think the user's rights are ok on the web server, since I was able to retrieve the data using Postman.


In Postman I've only provided the Basic Authentication credentials and it worked. So I'm assuming the web server's configuration is ok.



Lucian


Hi Lucian,



I had a quick look on an out of box instance on Eureka ( glide-eureka-04-08-2014__patch12-hotfix2-10-06-2015) and I can't seem to find the "Parameters" field you have in your screen shot.


Is that out of box on your instance and if yes, which release of eureka are you using?



Regards,


Sergiu


Hi Sergiu,



More details on the version:


Build name: HEAD (Eureka)


Build date: 07-22-2015_1657


Build tag: glide-eureka-04-08-2014__patch11-hotfix2-07-08-2015



Thanks.


Lucian