- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2018 03:04 PM
Hello,
I created a scripted REST API and selected requires authentication but unable to specify the basic auth credentials.
It does not show me an option to do it.
Any guidance ?
Thank you,
Easwar
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2018 09:20 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 08:54 PM
Hi @eashwar ,
You can add an API access policy to your API if you want to apply a policy to your API.
With an API access policy, you can control
- which authentication method is allowed for the API. example only OAuth, Only mTLS
- Which all users can access this API (based on user role or group membership)
- From which all IP ranges this API can be invoked.
Thanks,
Randheer

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2018 05:41 PM
You only need Basic Auth Crendentials, when you are creating a Outbound REST API. That is, when you are sending a request to a 3rd party system which has exposed a REST API to ServiceNow. You need to 3rd party credentials to be passed as basic auth from ServiceNow to authenticate.
Scripted REST API is for inbound Request. So you are building a Scripted REST API to be consumed by a 3rd Party. So the 3rd party will send the request to ServiceNow and they should send credentials from their end to validate to authenticate in ServiceNow.
Please mark this response as correct or helpful if it assisted you with your question.