Want to check Oauth integration using rest message
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2024 06:51 AM
Hello Everyone,
So I have created an Oauth client which I am able to test via postman and I am able to receive the refresh and access token.
But I do want to test the same via rest message.
So I created an oauth provider referring the instance with the client id and client secret
Both my source and destination instance is the same
I went to rest message and clicked on get oauth token and it worked fine.
In the header I am using Content-Type as application/x-www-form-urlencoded
And the content in the http query parameters as grant_type=password&client_id=${client_id}&client_secret=${client_secret} with details provided
And when I click on test I receive : Method failed: (/oauth_token.do) with code: 401 - Invalid username/password combo
So this works via postman but I want to fetch the response via testing the same in rest message .I do not want to do it via code.
Is this possible or am I missing something
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2024 11:52 PM
Hi @Roy44,
Please refer to the link below:
https://docs.servicenow.com/bundle/xanadu-api-reference/page/integrate/outbound-rest/task/t_Configur...
https://www.youtube.com/watch?v=eEWH5KinzFE
If it is helpful, please mark it as helpful and accept the correct solution. In future, it might be helpful for someone to refer to this solution.
Thanks & Regards,
Abbas Shaik