User authentication Issue - Scripted REST Step in custom Action

chakriy
Giga Contributor

We are using Scripted REST Step in a custom Action and using the Connection Credentials alias with oAuth credentials.

 

It was working fine and suddenly we started seeing the User not authenticated error. The refresh token is available and valid.

 

@AnveshKumar M Can you help me with this?

1 ACCEPTED SOLUTION

AnveshKumar M
Tera Sage
Tera Sage

Hi @chakriy 

 

Along with what Ankur mentioned, try getting new Refresh Token by using Get oAuth Token and try the outbound.

 

Please mark my answer helpful and accept as solution if it helped you 👍✔️

Thanks,
Anvesh

View solution in original post

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@chakriy 

Did you try to check the credentials are correct? Check with 3rd party team did the credentials change

what happens when you test via Postman tool?

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

Hi Ankur,

 

Thanks for your answer.

 

Credentials are not changed, I confirmed this. It is because of latest clone activity they performed.

AnveshKumar M
Tera Sage
Tera Sage

Hi @chakriy 

 

Along with what Ankur mentioned, try getting new Refresh Token by using Get oAuth Token and try the outbound.

 

Please mark my answer helpful and accept as solution if it helped you 👍✔️

Thanks,
Anvesh

@AnveshKumar M Thanks Anvesh! This worked. We came to know that the target Dev instance is recently got cloned, may be this caused the refresh token to be invalid.