← All articles
Action requiredWinter '27Security / OAuth

Replace the OAuth Username-Password Flow by February 20, 2027

For connected app integrations that still use username-password OAuth, choose a replacement based on whether the app acts for a user or runs server to server.

Required action

By February 20, 2027, migrate every connected app integration that uses the OAuth 2.0 username-password flow. Salesforce enforces the update on that date, and integrations still using the flow stop working then.[1]

Who is affected

The update applies to all editions in Lightning Experience and Salesforce Classic, but only integrations that still use the flow are exposed.[1] Salesforce also blocks the flow in orgs created in Summer ’26 or later and disables the option to allow it on the OAuth and OpenID Connect Settings page.[1]

To confirm whether the update is still applicable, in Setup open Release Updates and look for Retirement of OAuth 2.0 Username-Password Flow for Connected Apps. If it isn’t listed, Salesforce says the flow is already blocked in that org, so this enforcement doesn’t affect it.[1]

Why Salesforce is retiring it

The flow sends a user’s credentials directly in HTTP requests, which Salesforce identifies as a security risk.[1]

Find the integrations

  1. Build an inventory by checking integration code and middleware configuration and asking integration owners. The release note doesn’t identify a Setup report for finding clients by flow.[1] For each client, record its owner, org, environment, and authentication flow.
  2. For vendor-managed applications, contact the developer, as Salesforce directs.[1] Ask which flow the connector uses and which supported version or migration path replaces it.

Choose the replacement

Salesforce recommends one of two replacement paths:[1]

  • A user signs in and authorizes access: use the OAuth 2.0 web-server flow with Proof Key for Code Exchange (PKCE). The flow uses an authorization code that the web app’s server exchanges with Salesforce.[2] For integrations rebuilt during this migration, see Related change for the app-type recommendation.
  • A headless service connects server to server: use OAuth 2.0 client credentials. This flow requires an external client app (a separate app type from a connected app) and an assigned integration user (the user whose permissions the API calls run under); it doesn’t require explicit user interaction.[3]

Verify the migration

  • The release update has been available to test since Spring ’26. In a sandbox, test each replacement flow by obtaining a token and completing the required API operation under the intended Salesforce identity. Then, in that same sandbox, follow the release update’s testing steps in Setup > Release Updates.[1]
  • Before activating in production, have each recorded client owner confirm that their client passed the replacement-flow test and the release update test in the sandbox. Then follow the release update’s Setup activation steps for each org.[1] After activation, verify that each production client obtains a token and completes its required API operation under the intended Salesforce identity.

Related change

Separately, after the Migrate All Connected Apps to External Client Apps release update is enforced in production in Summer ’27, existing connected apps in Lightning Experience Enterprise, Unlimited, and Developer editions keep working but no longer receive fixes or support.[4] Based on that upcoming support change, our editorial recommendation is to use external client apps for new web-server-flow clients in these editions.

Sources

  1. Retirement of OAuth 2.0 Username-Password Flow for Connected Apps (Release Update)https://help.salesforce.com/s/articleView?id=release-notes.rn_security_oauth_unpw.htm&language=en_US&release=264&type=5
  2. OAuth 2.0 Web Server Flow for Web App Integrationhttps://help.salesforce.com/s/articleView?id=xcloud.remoteaccess_oauth_web_server_flow.htm&language=en_US&type=5
  3. OAuth 2.0 Client Credentials Flow for Server-to-Server Integrationhttps://help.salesforce.com/s/articleView?id=xcloud.remoteaccess_oauth_client_credentials_flow.htm&language=en_US&type=5
  4. Migrate All Connected Apps to External Client Apps (Release Update)https://help.salesforce.com/s/articleView?id=release-notes.rn_security_migrate_all_connected_apps.htm&language=en_US&release=264&type=5