BASIC authentication

Shabbir1
Tera Contributor

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 ...

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@Shabbir1 

how is it expiring?

When is the information stored for expiry?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Markus Kraus
Kilo Sage

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.

Appli
Mega Sage
Mega Sage

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.

Hope it helps