aaz
10/16/2024, 12:37 PMCeligo AI
10/16/2024, 12:37 PMAI generated answer (using internal Slack threads):To test OAuth 2.0 authentication in Postman, follow these steps: 1. Open Postman and click on the "Authorization" tab. 2. From the "Type" dropdown, select "OAuth 2.0". 3. Click on the "Get New Access Token" button. 4. Fill in the details in the form that appears: - Token Name: Any name you prefer. - Grant Type: Select "Authorization Code". - Callback URL: This should be the redirect URI that you have specified in your OAuth 2.0 client setup. For testing in Postman, you can use
<https://www.getpostman.com/oauth2/callback>
.
- Auth URL: This is the authorization endpoint URL. For NetSuite, it should be in the format https://<ACCOUNT_ID>.<http://app.netsuite.com/app/login/oauth2/authorize.nl|app.netsuite.com/app/login/oauth2/authorize.nl>
.
- Access Token URL: This is the token endpoint URL. For NetSuite, it should be in the format https://<ACCOUNT_ID>.<http://suitetalk.api.netsuite.com/services/rest/auth/oauth2/v1/token|suitetalk.api.netsuite.com/services/rest/auth/oauth2/v1/token>
.
- Client ID and Client Secret: These are the credentials you received when you set up your OAuth 2.0 client.
- Scope: This should be set to "restlets" for NetSuite.
- State: This is a mandatory field. It can be any string with a length between 24 and 128 characters.
- Client Authentication: Select "Send as Basic Auth header".
5. Click on the "Request Token" button. This will open a new window where you will need to enter your NetSuite credentials.
6. After successful login, you will be redirected back to Postman with a new access token generated.
7. You can now use this access token to make requests to the NetSuite API. Select the token from the "Available Tokens" dropdown in the "Authorization" tab.
Remember, the access token lasts for an hour before you need to get a new one using the refresh token. The refresh token lasts for 7 days before you need to start over and get a new refresh and access token.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
10/16/2024, 12:38 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.8581236
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.857262075
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.857145965
Celigo AI
10/16/2024, 12:38 PM