Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DCRRedirectPorts = []int{8000, 8080, 8888, 9000}
DCRRedirectPorts are the specific ports to try for OAuth callbacks Must match TypeScript PR #84 and DCR registration
Functions ¶
This section is empty.
Types ¶
type CallbackResult ¶
CallbackResult represents the result of the OAuth callback
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server handles the OAuth callback
func NewServer ¶
NewServer creates a new callback server Tries to bind to one of the pre-registered DCR ports (8000, 8080, 8888, 9000) Matches TypeScript PR #84 behavior for compatibility
func (*Server) RedirectURI ¶
RedirectURI returns the full redirect URI Uses /oauth/callback path to match TypeScript PR #84
func (*Server) WaitForCallback ¶
func (s *Server) WaitForCallback(timeout time.Duration) (*CallbackResult, error)
WaitForCallback waits for the OAuth callback
Click to show internal directories.
Click to hide internal directories.