SalesForce Integration problem in Oauth token re-generation each time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2022 04:56 PM
Hi Experts,
I having problem to config the Oauth connection in salesforce.
I created a trail version of Salesforce system. I created there a connected app, and copy from their the client id and client secret.
I created Oauth record in service now type: OAuth Provider
with this URLs:
https://login.salesforce.com/services/oauth2/authorize
https://login.salesforce.com/services/oauth2/token
https://login.salesforce.com/services/oauth2/revoke
I also try these URLs:
https://itprocess.lightning.force.com/services/oauth2/authorize
https://itprocess.lightning.force.com/services/oauth2/token
https://itprocess.lightning.force.com/services/oauth2/revoke
here is the list of scopes:
Access the identity URL service (id, profile, email, address, phone)
Manage user data via APIs (api)
Manage user data via Web browsers (web)
Full access (full)
Access Connect REST API resources (chatter_api)
Access Visualforce applications (visualforce)
Perform requests at any time (refresh_token, offline_access)
Access unique user identifiers (openid)
Access custom permissions (custom_permissions)
Access Analytics REST API resources (wave_api)
Access Analytics REST API Charts Geodata resources (eclair_api)
Manage Pardot services (pardot_api)
Access Lightning applications (lightning)
Access content resources (content)
Manage Salesforce CDP Ingestion API data (cdp_ingest_api)
Manage Salesforce CDP profile data (cdp_profile_api)
Perform ANSI SQL queries on Salesforce CDP data (cdp_query_api)
Access chatbot services (chatbot_api)
I'm able to generate a token but the next day I need to re-generate it by login to salesforce site.
Is any one can help with it?
Best regards,
Lior Grinberg
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2022 01:03 AM
Hi Lior,
Did you check the refresh token lifespan, increase the timespan that must help. or check in salesforce if you can extend the time span of token. this must help.
Refer : https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0723609
Thanks
Sohail Khilj
Kindly mark the answer correct or helpful if it addresses your concern...
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2023 12:19 PM
Hi I had same issue. did you get the solution?