Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WaitForCallback ¶
func WaitForCallback(ctx context.Context, expectedState string, listener net.Listener, listenAddr string) (string, error)
WaitForCallback starts a local HTTP server on listener and waits for an OAuth callback. It returns the authorization code from the callback.
If listener is nil, one is created on listenAddr. Passing a pre-bound listener (e.g., from net.Listen("tcp", "127.0.0.1:0")) is preferred for tests to avoid port conflicts.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.