Headless environments (especially containers) should support sf org login web
#3426
Replies: 2 comments
-
|
I'm also curious how Salesforce makes this work on their code-server deployment (Agentforce Vibes). This is clearly running each dev env on a container, but sf org login web functions as expected. I'm almost wondering if supporting this for vs code devcontainers is a simple config change we aren't aware of. |
Beta Was this translation helpful? Give feedback.
-
|
for headless authentication we recommend to use jwt auth:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, the Salesforce CLI does not support headless authentication when using
sf org login web. This limitation makes it difficult to authenticate Salesforce orgs in environments without a browser, such as Docker containers. I would expect that the CLI will output a one-time URL to the console, that will direct the user to complete authentication in their preferred web browser; when the ENV variableSF_CONTAINER_MODE=trueThis will allow developers to fully run the Salesforce CLI Docker image, which will help streamline developer workflows
This is a followup from #3415
Beta Was this translation helpful? Give feedback.
All reactions