How to Setup MFA or OAUTH for API Endpoints when accessing through BROWSER?

Vasanth Pandia2
Tera Contributor

Hello,

Accessing any of API Endpoints prompt for "Basic Authentication" when accessed using a web browser. I understand that API endpoints are used during integration with 2 systems. But incase if user tries to access the URL, we would like setup login thorough MFA or OAUTH.

Please let us know is there a way which we can achieve it?

 

Example: Below is the picture when trying to access the API through a browser, we are being asked to login through basic authentication

Regards,
Vasanth

3 REPLIES 3

Tony Chatfield1
Kilo Patron

Hi, I would think that would be correct behaviour as user access to the platform via an API without authentication would be a serious security risk. Also I don't see '/api/now/ui' as a documented API, perhaps you could clarify your intentions and business drivers\requirements.

 

Hi @Tony Chatfield : This applies to any API URLs. Any URL copied into browser, shows up basic authentication which is a big security threat.

Hi, sorry but I don't understand the context of your response, any URL copied into a browser should result in an authentication\process based on your 'user' access to the platform (unless the url is flagged a public), so if you want to use MFA for access to your instance then you need to configure it for MFA
Authentication (servicenow.com)

Perhaps you need to update your API access so that Oauth is used instead of basic?
Enable OAuth with inbound REST (servicenow.com)