OAuth2 Username-Password Flow (Resource Owner Password Credentials)
Get Salesforce OAuth2 authorization page URL to redirect user agent.
OAuth2 Refresh Token Flow
Send access token request to the token endpoint.
When a code (string) is passed in first argument, it will use Web Server Authentication Flow (Authorization Code Grant).
Otherwise, it will use the specified grant_type
and pass parameters to the endpoint.
OAuth2 class