Headless environments (especially containers) should support sf org login web
#3426
Closed
mhemani-reach
started this conversation in
Ideas
Replies: 2 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. |
0 replies
|
for headless authentication we recommend to use jwt auth:
|
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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