- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2024 12:24 AM
Hi Team,
I'm new to OAuth 2.0. I'm currently working on configuring OAuth token with our external vendor who uses Zendesk tool and is provider for OAuth token. The did setup and using the provided client-id and client secrate and other details we did setup at our end also with the provided details in Application regiestroy and created one custom script based on OAuthUtil. Tried getting token it's reching the zendesk side but receiving HTTP error 401 - unauthorized error. Tried finding what is the issue here but not able to find it. Any help appriciated.
Custom Util Script
Let me know if you require any more details.
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2024 05:52 AM - edited 05-17-2024 05:56 AM
@AkashYen007 401 indicates its authorization error.
Non-admins will not be able to retrieve the details:
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0783632
Create a Zendesk OAuth client :
Also did you try to change the Send credentials as "In Request Body" and test it. If so what was the result?
I have come cross the same issue and I had to re-enter the client secret and it worked.
Please mark this as helpful and accept it as a solution if this resolves your query.
Thanks,
Sujatha V.M.
Sujatha V.M.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2024 08:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2024 05:52 AM - edited 05-17-2024 05:56 AM
@AkashYen007 401 indicates its authorization error.
Non-admins will not be able to retrieve the details:
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0783632
Create a Zendesk OAuth client :
Also did you try to change the Send credentials as "In Request Body" and test it. If so what was the result?
I have come cross the same issue and I had to re-enter the client secret and it worked.
Please mark this as helpful and accept it as a solution if this resolves your query.
Thanks,
Sujatha V.M.
Sujatha V.M.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2024 11:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2024 12:28 AM
Thanks a lot for the help on this it helped to get token in our side
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2024 02:33 AM
Hi @AkashYen007,
The things which help in troubleshoot are
1. You can use Postman application to check the client ID and secret key is able to hit the Zendesk tool.
2. Also can use the "Generate Token" which gives you the token and check whether the bearer token is working by using it in postman under authorization select bearer token.
By the above you'll get to know the connection is working or not.
Please mark it helpful and try to give it a thumbs up if the above helps. Please accept the solution.
Thanks & Regards
Tabassum Sultana
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2024 03:34 AM
Hi @Tabassum22 ,
Yes I have verified by going through postman and it is getting access_token there without any issue.
Thanks.