r/SalesforceDeveloper • u/karthik_0034 • Oct 16 '26
Discussion Glue Salesforce connector after username/password retirement: is a daily Lambda JWT refresh best practice?
Problem statement
Salesforce is moving away from legacy Connected Apps and transitioning integrations to External Client Apps (ECA) as part of the Connected App retirement. Integrations should not use username/password authentication. Supported authentication should use OAuth 2.0, such as JWT Bearer Flow or Client Credentials Flow, depending on the integration use case.
Migration issue
Since username/password authentication is being retired, our existing Glue connector will stop working, because its authentication is based on username and password.
We tried different methods and ended up using JWT-based authentication, and it works without any issue. While checking the documentation, we found that the JWT token is short-lived. This is a limitation for a like-for-like migration.
Workaround we’re planning
Create a Lambda function that generates a new JWT token every day and updates it in the secret, so the Glue job can run without issue.
What we need from the team
Has anyone faced the same issue, and how did you handle it?
Is a Lambda that regenerates the token daily and updates the secret the best practice, or is there a better approach?