Common oAuth flows are supported via two "utility" functions:
getAuthorizationUrl(): Creates the oAuth URL for flows which redirect the end User (Web-Server & User-Agent flows)
getAuthorizationUrl()
requestAccessToken(): Makes a request to /services/oauth2/token to get an Access Token. Used by most flows.
requestAccessToken()
/services/oauth2/token
See sub sections for examples of each supported flow.
Reference Salesforce's official documentationarrow-up-right to see full list of parameters for each oAuth flow.
Last updated 5 years ago
Was this helpful?