Info Message{"error":{"message":"User Not Authenticated","detail":"Required to provide Auth informat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2025 07:50 AM
Hi,
I am able to get the access and refresh token for instance-to-instance integration, but I am getting this error: (Info Message
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2025 07:55 AM
You are saying you are able to get the token but are you getting that error message in subsequent API call?
please share some more details.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2025 09:11 PM
@Ankur Bawiskar yes,
Here I am implementing OAuth 2.0 for instance-to-instance integration (like Instance A and Instance B).
if I create one incident in Instance A then same incident should be created in Instance B with this OAuth 2.0 integration, I can be able to generate refresh token and access token but when I create incident in Instance A it is showing the below error. screenshot shared for your reference.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2025 10:20 PM
seems you are not sending the token received correctly in the actual API call
Please share your complete script with which you are consuming the token API and the actual API
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2025 11:46 PM
@Ankur Bawiskar yes,
Here I am implementing OAuth 2.0 for instance-to-instance integration (like Instance A and Instance B).
if I create one incident in Instance A then same incident should be created in Instance B with this OAuth 2.0 integration, I can be able to generate refresh token and access token but when I create incident in Instance A it is showing the below error. screenshot shared for your reference.
Below is the script include code, i will call this script include from scheduled job periodically and i will generate refresh token and i call this script from business rule to generate access token(business rule is triggered when incident is created).
Business rule script