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

Function retrieveLoginURL

app/cli/cmd/auth_login.go:201–208  ·  view source on GitHub ↗

Retrieve loginURL from the control plane

()

Source from the content-addressed store, hash-verified

199
200// Retrieve loginURL from the control plane
201func retrieveLoginURL() (string, error) {
202 client := pb.NewStatusServiceClient(ActionOpts.CPConnection)
203 resp, err := client.Infoz(context.Background(), &pb.InfozRequest{})
204 if err != nil {
205 return "", err
206 }
207 return resp.LoginUrl, nil
208}
209
210// Create a local HTTP listener with a random available port
211func localListenerAndCallbackURL() (net.Listener, *url.URL, error) {

Callers 1

interactiveAuthFunction · 0.85

Calls 1

InfozMethod · 0.95

Tested by

no test coverage detected