BASIC authentication
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2023 03:46 AM
Hi
we are sharing ServiceNow GET API and Basic authentication to third party tool ..now the problem is basic authentication is expiring in two days and getting error message Unauthorized user .they want basic AUTH only can anyone help how to give basic AUTH account for a long time ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2023 05:00 AM
how is it expiring?
When is the information stored for expiry?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2023 06:57 AM
If an external application is accessing the ServiceNow REST API using Basic Auth - meaning with Username + Password, their credentials are stored in the sys_user table.
Those credentials do not expire.
In contrast, if OAuth is used instead - this is not Basic Auth however - their token would eventually expire.
Your original post is not detailed enough to give you further assistance, please give us more information to help you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2023 08:19 AM
Hi, probably user session is expired, if not used for some time - suggest you to check with an owner of third party tool and clarify attributes of the session. Easiest solution would be making another authorization every time before attempting to connect to the tool.