function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AshiAshi 

Endpoints used with OAuth 2.0

Hi,

 

Can someone explain me about the two primary endpoints used with OAuth 2.0:

Authorization—https://login.salesforce.com/services/oauth2/authorize

Token—https://login.salesforce.com/services/oauth2/token

 

What is the difference between them

What is the significance of each one

How to choose either of them

 

Thanks

 

 

MattLacey.ax1065MattLacey.ax1065

Hi Ashima,

 

The first is to be used when authenticating for a new session, i.e. for the first time or after all authentication has been revoked. The latter is for you to use when you have a refresh token (returned by a login call). This can be used to perform authentication and get a new session without the user having to enter their login credentials again.

 

Matt