servicenow authorization_code grant flow is not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2024 08:46 AM
Problem:
I am trying to do authorization_code flow in my servicenow instance.
I have the following set up:
1. clientId
2. clientSecret
3. redirect_uri
After doing log in through UI. I get the code. But when I exchange that code for an access/refresh token. I see:
{"error_description":"access_denied","error":"server_error"}
Can someone please help me out?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2024 12:49 PM
Hi, oauth token requests are 'POST' but your incomplete screenshot shows a 'GET'. Have you followed these instructions?
Using the Oauth authorization grant flow to get a refresh and access token from a ServiceNow instanc...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2024 01:33 PM
I am facing same issue. And it is a post request for me. i think everything is followed as per documentation.
The admin roles are exactly setup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2024 02:07 PM
Hi Tony, thank you for your prompt response:
1. This link provided here
redirected me to this page:
Which does not seem correct
We tried to follow the next steps in the document
2. When we go to the url to get the code:
it returned:
Missing code_challenge parameter in the request
Could you please help us out? Maybe we can jump on a call to unblock this flow as this is a priority for us 🙂
Thank you very much!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2024 02:15 PM
Hi Tony, thank you for your response
1. the link mentioned here
redirected me to this page which does not seem correct
Also when I tried the url with this url:
it returned:
Could you please help? Could we jump on a call to resolve this as this is a priority for us?