Expand description
Helper function to create common authentication configurations.
Presets that include ambient discovery (AuthStrategy::Default) opt into
AuthMode::AllowAmbient explicitly, since their purpose is operator-style
access to first-party/trusted remotes. The strict certificate default is
preserved in every preset.
Functionsยง
- github_
token - GitHub personal access token scoped to the canonical
github.comauthority, with SSH-agent and ambient fallback. - public_
only - Public repository access via ambient discovery only. Opts into
AllowAmbient. - ssh_
key_ file - SSH key file authentication with agent and ambient fallback.
- ssh_
standard - Standard SSH configuration (agent + ambient fallback). Opts into
AllowAmbientbecause the ambient fallback is the explicit intent.