AQUILA - SalesForce Integration (Username-Password Flow)

In Salesforce, the Username-Password Flow is an OAuth 2.0 authentication flow where an application obtains an access token by directly sending a Salesforce username, password, and (usually) security token to Salesforce.\

Important note

The Username-Password Flow is increasingly discouraged for new Salesforce integrations because it requires handling user credentials directly. For most modern integrations, the JWT Bearer Flow or Client Credentials Flow is usually preferred due to better security and easier compliance with MFA requirements.

How it works

The client application sends a request to Salesforce's OAuth token endpoint with:

Salesforce validates the credentials and returns an access token if authentication succeeds.


Log in to your Salesforce Organization.

Note: If the salesforce dashboard interface is in classic mode change it to lighting mode. 

image.png

image.png

To find the base URL and instance URL follow the guide below.

image.png

Creating User

image.png

image.png

 


Enable Allow Access to External Client App Consumer Secret via REST API

External Client App Setting > Allow Access to External Client App Consumer Secret via REST API

image.png

Enable Event log files

Event Monitoring Settings > Generate event log files

image.png


 Create A Connected Apps 

For security reasons, Salesforce blocks the OAuth 2.0 Username-Password flow by default in recent releases. Prefer the JWT bearer flow. If you must use the Username-Password flow, in OAuth and OpenID Connect Settings, select Allow OAuth Username-Password Flows. For more information, see the Salesforce release note: Username-Password OAuth flow blocked by default.

image.png

image.png

image.png

image.png

Manage Consumer Details Appears only once so better to copy consumer key and consumer secret in a safe place. 

image.png

image.png


Verify if LoginEvent is enable
in Quick find > Event Manager > enable all

image.png


Provide this to Cytech Support:

 


If you need further assistance, kindly contact our support at support@cytechint.com for prompt assistance and guidance.

 


Revision #1
Created 17 June 2026 09:31:41 by Benjie Janlay Jr.
Updated 17 June 2026 09:55:01 by Benjie Janlay Jr.