OAUTH 2 Authentication for client creds is giving error as null response

Pradeep907
Tera Contributor

Hi,

I am using Oauth 2 to authenticate with client creds. After configuring the profile with client id, secret and token url, Get Oauth Token link is giving me the following error
"OAuth flow failed. Verify the configurations and try again. Error detail:Invalid null response."

I checked the following Outbound logs.

Request header logs: {Content-Length=127, Content-Type=application/x-www-form-urlencoded}

Response header: {}

Response body: [ERROR CODE: -1]

 

And also I am getting following error:

OAuth authentication failed for client_credentials grant type flow

 

 

I tried the Oauth script override from OAuth script include and commenting the last function lines, it did not helped

 

Could Anyone help me with the Issue here?

3 REPLIES 3

fannyxtufino
Tera Contributor

Hi @Pradeep907 , did you get to solve this issue? I'm facing the same.

valter479
Tera Contributor

Hi @Pradeep907 ,

Did you get to solve this issue? I'm facing the same.

 

Thanks.

 

 

 

Randheer Singh
ServiceNow Employee
ServiceNow Employee

@Pradeep907 
The official support for the OAuth Client credential grant type for inbound API authentication started with the W release. Have you followed the steps provided here?