OAuth 2.0 with authorization code not working?

bbarber9
Giga Expert

Hello all, I am running into issues when trying to set up an OAuth 2.0 connection with an authorization code. I have created the application registry and profiles etc. But when I try to get a token it breaks during the flow. I attached a screenshot of where it fails. I think the problem is that servicenow is generating a bad URL during the flow. It has an empty query parameter that I highlighted in the image. Has anyone experienced similar issues/do you have a workaround?

1 ACCEPTED SOLUTION

bbarber9
Giga Expert

Just in case anyone else has this issue, I confirmed it was a bug in ServiceNow with support. Apparently it is not slated to be fixed until the Kingston release 😕



In the mean time, I was able to work around the issue by copying the URL from the popup box and correcting the URL so that the "?&" became just "?" and then manually visiting that URL in my browser.


View solution in original post

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Barber,



Any update on this?


Can you mark my answer as correct, helpful and hit like if you were able to achieve the requirement. This helps in removing this question from unanswered list and helps users to learn from your thread. Thanks in advance.



Regards


Ankur


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

bbarber9
Giga Expert

Just in case anyone else has this issue, I confirmed it was a bug in ServiceNow with support. Apparently it is not slated to be fixed until the Kingston release 😕



In the mean time, I was able to work around the issue by copying the URL from the popup box and correcting the URL so that the "?&" became just "?" and then manually visiting that URL in my browser.