SalesForce Integration problem in Oauth token re-generation each time

lior grinberg2
Tera Expert

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

 

2 REPLIES 2

Sohail Khilji
Kilo Patron
Kilo Patron

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

 

find_real_file.png

 

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....

LinkedIn - Lets Connect

leoferrero
Tera Contributor

Hi I had same issue. did you get the solution?