Questions tagged [refresh-token]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
30 views

Connected App for API & Canvas App Settings seem to contradict each other

We're trying to use the same connected app (using Web Server flow) for two purposes: 1) Allow API calls to Salesforce via an external website and 2) Use Canvas App to embed that external website into ...
0
votes
2answers
25 views

Is there a way to get new access token when current session get expired without using Connected App?

I have one Customer's Salesforce Application and one .Net Web Service. I also have Connected App in Salesforce which I am using to generate new token. Salesforce Application calls .Net Web Service ...
0
votes
0answers
28 views

Refresh Token authorization problem

How Are Apps Authenticated with the Web Server OAuth Authentication Flow? I have a web service so that to give from sf. I have prepared the web service and tested it, it works. To provide service, I ...
0
votes
0answers
55 views

{“message”:“Session expired or invalid”,“errorCode”:“INVALID_SESSION_ID”}

Help! We are getting this error with our connected app. {"message":"Session expired or invalid","errorCode":"INVALID_SESSION_ID"} What could be causing this? We are using sandbox. The Instance URL ...
4
votes
2answers
357 views

Refresh Token using Salesforce Named Credentials and Auth Provider

I am performing a rest callout to a 3rd party service. Authentication is set up with a named credential (Named Principal, OAuth2) using an Open ID Connect-authentication provider which uses WSO2 ...
1
vote
0answers
41 views

How can I programmatically find out when an accessToken expires with the OAuth Token Refresh Flow [duplicate]

My company is using the OAuth "Refresh Token" flow, and can get an accessToken and refreshToken fine using this flow. The problem I'm having is that the responses we receive from Salesforce don't ...
0
votes
3answers
63 views

Seamless Sign On - Single Sign On

I am using OpenID protocol and my need is to make the access to Salesforce seamless, after the user is authenticated by the Identity Provider. My Identity Provider is a internal LDAP managed by ...
1
vote
1answer
78 views

Understanding the refresh token workflow

I am new to Salesforce and my current goal is to ensure that my application never is prompted to give user credentials when making an API call. I see that this is the point of the refresh token, but I'...
2
votes
1answer
511 views

Named Credential: Authentication process and refresh token

I've begin working with Named Credential and Authentication Provider for the first time and I'm a bit lost on the authentication process and the refresh token functionalities. I'm going to add to my ...
2
votes
1answer
258 views

OAuth 2.0 JWT Bearer Token Flow refresh_token

According to this SF StackExchange answer, the OAuth 2.0 JWT Bearer Token flow only need a one-time authorisation of the app certificate, and then you can forever issue a OAuth 2.0 JWT Bearer Token ...
0
votes
1answer
173 views

How to create users for Connected App Web Server OAuth2 Authentication Flow with multiple users and tokens?

I currently have one IoT device updating data on Salesforce and it is using Salesforce Connected App and the Web Server OAuth2 Authentication Flow. Currently, there is two users created: ...
1
vote
2answers
1k views

How to Make Session Expire with Salesforce Connected App Web Server Flow

How would one make a session expire? Here is my configuration: Using a Salesforce Connected App Setup->Security Controls->Session Settings->Timout Value = 15 minutes Setup->Security Controls->...
1
vote
3answers
419 views

Getting OAuth 2.0 Refresh Token returns invalid_client_id

My Connected App settings are the following: (1) Setup->Manage Apps->Connected Apps->FirstConnectedApp->Refresh Token Policy: "Refresh token is valid until revoked" (2) Setup->Security Controls->...
0
votes
1answer
26 views

Marketing Cloud Authorization code should be generated automatically whenever it is expired

I was able to generate access token using this link Access Token . Now I'm making a Restful API call using this access token to MC and here is the class Http h = new Http(); HttpRequest req = ...
0
votes
2answers
2k views

REST API access and refresh token workflow question

I have a cron-job that's running against my SalesForce account daily. According to my understanding, i can't use the same access token i receive from SF every day for a period of a long time (say a ...
0
votes
1answer
102 views

Update Refresh_token from /services/oauth2/token

I have successfully got the access_token and the refresh_token from a Web Flow OAuth2. My scope do include full and refresh_token. The issue I have now is that when I login after with server to ...
0
votes
1answer
245 views

Can't get refresh_token in callback with a 'full' scope

I'm trying to get an access_token and a refresh token for a connected app. I managed to get either the access_token and a full access to the API, or an access_token and a refresh_token, but without ...
1
vote
0answers
49 views

OAuth2.0 User-Flow refresh_token is never returned

I have been searching for days and trying different methods with no luck to my problem. You are welcome to link me to something but I have probably already looked. My issue / steps are: Trying to ...
0
votes
1answer
511 views

Where Could I find the refresh_token

I found we need refresh token for renewing access token for REST API. But i couldn't find refresh token in response of my request. How can I get refresh token.Here is my code in PHP. $postData = ...
1
vote
0answers
128 views

Refresh token in Salesforce expires in 18-24 hours

I'm running into the weirdest problem, which started appearing in June 2017, it was almost like there was some change in the Summer '17 release that is doing that. There were absolutely no changes to ...
0
votes
1answer
436 views

Salesforce connected app - Change permissions scope

Let's say I have a connected app which I use for oauth, and it asks for 2 permissions: api chatter api Some users authorise to this and I have their access tokens and now I change permission set to ...
1
vote
0answers
156 views

Why refresh token gets regenerated when i try to regenerate my access token in salesforce wave analytics?

When i try to regenerate my expired access token, the refresh token also gets regenerated. I've set "Refresh token is valid until revoked" under OAuth policies for my app but still every time a new ...
0
votes
1answer
243 views

Updating the callback URL of a connected app ineffective

I have a connected app with an outdated callback URL. I need a refresh token, so I updated the callback URL. Even after one hour the change is still not effective. When I call https://login....
1
vote
0answers
18 views

API Token expires when switching to LIghtning Experience

I have integrated salesforce with my website so that I can use the API's for syncing contacts and leads. I store the Access token and refresh token in my database and I use them to make API calls ...
1
vote
2answers
130 views

First time accessing the sales force api **token**

Hello according to this link : Accessing the Salesforce API for the first time... using python I have executed a python and got the following C:\ProcesosCTM\Sales_Force>call python C:\...
2
votes
1answer
54 views

Distributed same copy of access_token and refresh_token, will it be problem to refresh the token in different process?

The case is after authorization, I get the access_token and refresh_token and then distribute the same copy of tokens to different runtime instances. And I'd like to let each runtime instance to have ...
1
vote
1answer
4k views

Oauth- getting refresh token

I've been banging my head against the wall trying to get a refresh token out of SFDC. I'm currently able to authenticate via Oauth and can make queries. I'm trying to test for when a token expires by ...
3
votes
0answers
95 views

Connected app becomes not working for no reason

We have serious problem with our connected app. We have integrated our system with Salesforce and many of our customers use this integration to sync data in Salesforce and our system. For no reason ...
1
vote
1answer
1k views

Marketing Cloud oAuth and Refresh token issues (RefreshToken Expires after first use)

Ok.There are questions about this but no answers. I am finding with ExactTarget the refreshToken expires when it is used (Which then I see no reason to use it at all since we would be using clientId ...
1
vote
2answers
522 views

refresh token not update access token

I have a trouble between integration with SalesForce and our's service. We are using oauth2 authorization and SalesForce REST API. Our clients authorize successfully for the first time and get the ...
2
votes
1answer
461 views

How to get a refresh token or redirect_uri for Salesforce API with python?

I'd like to use this PYTHON API Client Library to access the Chatter API client_id = "YOUR_CHATTER_CLIENT_ID" client_secret = "YOUR_CHATTER_CLIENT_SECRET" auth = chatter.ChatterAuth(client_id, ...
3
votes
2answers
891 views

How to get refresh token on my page using USER AGENT flow of salesforce?

I am a beginner in Angular JS and Salesforce. I am building a hybrid application. I am using the USER AGENT authentication flow I used the following url : https://login.salesforce.com/services/...
3
votes
1answer
92 views

Different Salesforce server between web login and API?

We recently had an issue with one of our clients that was causing our app's API calls to Salesforce to fail. Upon further investigation, it seems that the Salesforce server the client was assigned to ...
0
votes
1answer
2k views

Console refreshing

In the console settings for apps there is a refresh feature for lists. If we select refresh list rows, it doesnt actually refresh. It only highlights the rows that were changed. Is it possible to make ...
13
votes
2answers
4k views

Refresh Token Policy locked to immediatly expire token

I cant seem to get a refresh token as it is always expired. I found the refresh token policy setting but the only option is "Immediately expire refresh token". How do I change this? Thanks.
57
votes
2answers
21k views

What causes a Connected App's Refresh Token to expire?

We have configured our web application to use OAuth2 with our SFDC Connected App. The connected app is configured to never expire the refresh token unless manually revoked. When an admin connects the ...
2
votes
2answers
370 views

What's the flow for refreshing access token with a refresh token?

So, suppose I managed to get refresh_token, what happens now: Should I perform a new access token request every time I connect (so I send the refresh token before connecting, every time) Try if the ...
2
votes
0answers
143 views

Accessing Salesforce session via oAuth maintains session across browsers

I am using oAuth 2.0 Web server flow to connect to Salesforce org and get the Access token and refresh token. I use the following URL to access a visualforce page that resides within the Salesforce ...
3
votes
2answers
591 views

“App must be invoked via a signed request” shows in Canvas Previewer

I have connected App and added external link of Heroku to show as Canvas App. I have set the location Chatter Tab. In the developer account, my external application is accessible. It has set "Admin ...
1
vote
1answer
273 views

RefreshToken questions

When creating a Marketing Cloud Application (to be listed on the HubExchange) an installation of the App issues a JWT token that is received by the defined login end-point. The token contains, ...
5
votes
1answer
1k views

OAuth2 Refresh Token Flow with Communities

I'm trying to satisfy a requirement for providing an API for communities users, where they can log into Salesforce, retrieve some data, and provide that back to a client. I have two questions around ...
1
vote
2answers
2k views

How do I refresh an ExactTarget token using the REST API?

How do I refresh an ExactTarget token using the REST API? Is there any good documentation on this?
1
vote
2answers
283 views

Salesforce Mobile SDK Authentication flow issue

Created an android_hybrid Mobile app with Mobile SKD version 2.1 Added the remoteAccessConsumerKey at bootconfig.json as per my Connected App Update the oauthscope as "oauthScopes": ["api ...
4
votes
1answer
5k views

In what case should OAuth 2.0 Refresh Token Flow be used?

I am now using web server authentication flow along with refresh token flow in my system. Once a user granted a permission for the app to access, the app will request a permission, an access token and ...
6
votes
2answers
383 views

Salesforce Mobile SDK - refresh token validity period

Is there any document or reference about the validity period of refreshtoken of Mobile SDK? I have a hybrid local app and if I let the app to be idle for a while and use back, it's failing with the ...
1
vote
0answers
130 views

Multiple Connected apps for oauth

I have a web application that has a mobile component. Both of them have Salesforce oAuth and use different connected apps. Sometimes users authenticate only via the mobile app and their credentials ...
4
votes
3answers
1k views

Canvas Signed Request not sending refresh_token

I have a canvas a app that I distribute via a managed package on the AppExchange. The canvas app is configured to post a signed request to my heroku app. I have selected all the oauth scope options: ...
3
votes
1answer
101 views

How to configure expiry of refresh tokens

I have heard that "Refresh tokens can be configured to expire in their associated Connected App by an org admin." Can anyone direct me to where in the UI this feature is available? Thanks
9
votes
1answer
719 views

Using the Mobile SDK JS API, how can I determine if I have a refresh token already?

Background I currently have a hybrid iOS app that runs locally (index.html in the xcode app) that essentially provides a basic start page and login flow instructions that lead off to a force.com web ...