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
Venkatramanan LakshmananVenkatramanan Lakshmanan 

OAuth 2.0 Web Server Authentication Flow


I am trying to connect to SF from external application using the OAuth 2.0 Web Server Authentication Flow and i read about this flow. Came across this URL

where i could see URL with
response_type is passed as code,
client_id is the one we get once connected app is set in salesforce,
redirect_uri is URL to redirect once the authentication is done successfully and finally
state is specified as mystate

My question is, what should i give for the response_type and state ? for confirmation, redirect_uri is the URL which we have to redirect the user once the login is success, am i right? 

please advise.


response_type must always be "code" in this flow.

state is optional. more details here: