- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I have created spoke using spoke generator and used open api.
In connection I used clientid and secret.
I have created connection and credentials and linked to spoke
Getting below error on Get oauth token
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
The issue for me is we are passing grant-type in json body. The spoke Generator only support pass in header or form-encoded.
Created custom actions and achieved it finally instead of spoke generator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @santhoshsam ,
In ServiceNow, this error means the OAuth token was not generated.
For client_credentials, verify:
- Correct Token URL
- Grant type enabled
- Valid Client ID & Secret
Then click “Get OAuth Token”. If it still fails, check Outbound HTTP logs for the API error.
Mark this as Helpful if it clarifies the issue.
Accept the solution if this answers your question.
Regards,
Vaishnavi
Technical Consultant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @santhoshsam
1. Ensure all endpoints (Token URL, Auth URL), client secrets, and scopes ,api permission are correct according to your OAuth provider ( for scope - check the ServiceNow documentation)
2. If you are using MID Server for the integration, ensure it is up and running fine and can communicate with the token provider to process the request
3. Confirm that the OAuth Entity Profile in ServiceNow uses a grant type supported by the provider.
//Refer: Choose the Right OAuth Grant Type for ServiceNow Integration
4. If tokens have expired ->Navigate to Manage token -> delete existing tokens -> reauthorize the account .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I have tried everything correctly used grant type client credentials, which is same as my auth api. It is working correctly on postman. I cross verified everything and all intact. But in ServiceNow when I click Get Oauth Token it openup a popup and it shows this error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
The issue for me is we are passing grant-type in json body. The spoke Generator only support pass in header or form-encoded.
Created custom actions and achieved it finally instead of spoke generator
