The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Unable to generate OAuth token using Client Credentials with full scopes

NaveenK67767246
Kilo Explorer

Hi Team,

I am trying to establish a connection between ServiceNow and Jira using OAuth 2.0 Client Credentials flow.

  • I created an application registry with default settings in ServiceNow.

  • In Postman, when I attempt to generate an access token using the Client Credentials grant type, I do not get a valid token.

  • I also need the token with all scopes so that it can be used to call APIs for integration.

Steps I followed:

  1. Created OAuth API endpoint for external clients (System OAuth → Application Registry).

  2. Configured Client ID and Client Secret.

  3. In Postman, tried grant_type=client_credentials with basic authentication.

  4. Token request fails


    How do I correctly configure the application registry to allow client credentials flow?

     


    Is there a way to assign all scopes to the token?

    Regards,
    Naveen
1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@NaveenK67767246 

I have seen JIRA Spoke using Authorization Code as grant type

check this

Integration Hub | Set up the Jira spoke for Jira Cloud with OAuth 2.0 authentication 

JIRA and ServiceNow Integration for Attachment with Oauth 2.0 connection details 

In docs also it says Auth Code when you use JIRA Spoke

Set up the Jira spoke for Jira Cloud 

AnkurBawiskar_0-1758550466383.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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