Repository navigation
Headless environments (especially containers) should support sf org login web
#3426
Replies: 3 comments 1 reply
|
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. |
|
for headless authentication we recommend to use jwt auth:
|
|
Follow-up for anyone watching this thread: I opened #3674 with a concrete proposal and a working proof of concept. It keeps the standard Authorization Code + PKCE web flow and the default |
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
All reactions