Get access token from authorization code for REST Oauth 2.0 integration
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2023 10:16 AM
Hi,
I have created an application registry entry for ServiceNow to connect to third party application.
I need to get access token dynamically through script for REST API Oauth 2.0 integration as this access token expires every 30 minutes. I see scripts for grant type "Resource Owner Password Credentials" but couldn't find any script for grant type Authorization Code.
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2023 06:40 AM
I found that in order to select the grant type, I needed to modify the form layout on the Application Registry form by adding the Default Grant Type field.