Documentation
¶
Index ¶
- type Server
- func (h Server) AuthCode() string
- func (s *Server) Close()
- func (h Server) Error() string
- func (h Server) ErrorDescription() string
- func (s *Server) RedirectURL() string
- func (h Server) ServeHTTP(writer http.ResponseWriter, request *http.Request)
- func (s *Server) Start()
- func (s *Server) Wait() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// Port is the port the server is listening on
Port int
// contains filtered or unexported fields
}
Server represents an auth callback endpoint
func (Server) AuthCode ¶
func (h Server) AuthCode() string
AuthCode returns the authorization code from the callback
func (Server) Error ¶
func (h Server) Error() string
Error returns any error that occurred during the OAuth flow
func (Server) ErrorDescription ¶
func (h Server) ErrorDescription() string
ErrorDescription returns the error description if an error occurred
func (*Server) RedirectURL ¶ added in v0.25.0
Click to show internal directories.
Click to hide internal directories.