Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

question in Servicenow Ebonding integration

Srini19
Tera Contributor

Hi Friends,

I am trying to do Ebonding integration Snow to Snow with the Oauth2.0 type Authorization code. But when I click the Get OAuth Token in Rest Message I am getting below error. Here attached the Application registry which I have configured. Please let me know what is wrong in this, do I need to specify OAuth scopes, if yes then what I have to specifiy. kinldy let me know. 

 

Error message:

HTTP Error 401 - Unauthorized

 Thanks

Srini

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@Srini19 

you should give Authorization URL and Token URL as per this image

Please update yours

AnkurBawiskar_0-1764825918066.png

 

check these links

Two way to configure OAuth 2.0 -Outbound Rest integration in Action Designer 

Authorize access to an OAuth endpoint using auth code flow 

Authorization code flow example: ServiceNow instance as authorization server 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Shruti
Giga Sage
Giga Sage

Hi

Check the REST message header

For authorization code type it should be  Authorization : Basic <BASE64({CLIENT ID}:{CLIENT SECRET})>

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1647747