Hi Guys and Learners.
I think all of you are aware of the Connected App in Salesforce. But one thing is that after being given the full access permission of Connected App, the question arises that How to change the Refresh Token Policy of Connected App in Salesforce?
Create a Connected App -
When you will try to change the "Refresh Token Policy" of your created above Connected App then you will find that you are not able to change the value "Immediately expire refresh token" because there is only one field and that is a radio button.
Why do you have to change the "Refresh Token Policy"?
When you will try to get offline access for Salesforce API calls then the access token keeps expiring and you will not get the refresh token in the OAuth response object.
So, Let's know How we can change the Refresh Token Policy of a Connected App in Salesforce.
Step 1 -
Go to your Connected App and Edit.
Step 2 -
Go to the "API (Enable OAuth Settings)" section and go to the "Selected OAuth Scopes" field.
Step 3 -
Choose the "Perform requests on your behalf at any time (refresh_token, offline_access)" value from the "Available OAuth Scopes" box Add it to the "Selected OAuth Scopes" box and click on the Save button and then Continue.
Step 4 - Click on the "Manage" button of your Salesforce Connected App.
Step 5 - Now click "Edit Policies" and now you will find that you can change the "Refresh Token Policy".
Here you will be able to change the Policies given 4 points.
1. Refresh token is valid until revoked.
2. Immediately expire the refresh token.
3. Expire refresh token if not used for (in Hours, Days, Months).
4. Expire refresh token after (in Hours, Days, Months).
THANK YOU!
ReplyDeleteOnce Coinbase successfully linked to your account, click the link of the Sell/Buy Bitcoin. The link will direct you to the Buy area so simply enter the amount of Bitcoin that you need, tick on your bank account, and choose "buy Bitcoin". bitcoin mixer
ReplyDelete