why can't I get Oauth Auth code in postman?
# ask-stanley-ai
q
why can't I get Oauth Auth code in postman?
c
AI generated answer (using internal Slack threads):
Based on the conversations, the issue of not being able to get the OAuth Auth code in Postman could be due to several reasons: 1. Incorrect Callback URL: The callback URL in your integration should match the one in Postman. 2. Incorrect Access Token URL: The Access Token URL should be in the format
https://<accountID>.<http://suitetalk.api.netsuite.com/services/rest/auth/oauth2/v1/token|suitetalk.api.netsuite.com/services/rest/auth/oauth2/v1/token>
. Make sure to replace
<accountID>
with your actual account ID. 3. Incorrect Grant Type: The grant type should be set to "Authorization Code". 4. Incorrect State Parameter: The state parameter is mandatory and should meet the length requirement. It can be any string as long as it's longer than the minimum and shorter than the maximum. 5. Incorrect Scope: The scope should be set to "restlets" if you are using restlets. 6. Incorrect Client Authentication: The client authentication should be set to "Send as Basic Auth header". 7. Incorrect Role Permissions: The role associated with the Access Token should have the permission "Log in using OAuth 2.0 Access Tokens" under setup. Remember to double-check all these parameters and ensure they are correctly set. If you still encounter issues, you might want to check the error message for more specific details about what might be wrong. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.868530452
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.855896175
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.85559094
Please provide your feedback on this answer.