MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / isRemoteSession

Function isRemoteSession

app/cli/cmd/auth_login.go:191–198  ·  view source on GitHub ↗

isRemoteSession returns true if the CLI is running inside an SSH session where a local browser callback would not be reachable.

()

Source from the content-addressed store, hash-verified

189// isRemoteSession returns true if the CLI is running inside an SSH session
190// where a local browser callback would not be reachable.
191func isRemoteSession() bool {
192 for _, key := range []string{"SSH_CLIENT", "SSH_TTY", "SSH_CONNECTION"} {
193 if os.Getenv(key) != "" {
194 return true
195 }
196 }
197 return false
198}
199
200// Retrieve loginURL from the control plane
201func retrieveLoginURL() (string, error) {

Callers 1

interactiveAuthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected