Retrieve loginURL from the control plane
()
| 199 | |
| 200 | // Retrieve loginURL from the control plane |
| 201 | func 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 |
| 211 | func localListenerAndCallbackURL() (net.Listener, *url.URL, error) { |
no test coverage detected