skyserver

package
Version: v1.6.1-0...-0df06c2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSkyHandler

func NewSkyHandler(server *SkyServer) http.Handler

Types

type SkyConfig

type SkyConfig struct {
	Logger          lager.Logger
	TokenMiddleware token.Middleware
	TokenParser     token.Parser
	OAuthConfig     *oauth2.Config
	HTTPClient      *http.Client
}

type SkyServer

type SkyServer struct {
	// contains filtered or unexported fields
}

func NewSkyServer

func NewSkyServer(config *SkyConfig) (*SkyServer, error)

func (*SkyServer) Callback

func (s *SkyServer) Callback(w http.ResponseWriter, r *http.Request)

func (*SkyServer) Login

func (s *SkyServer) Login(w http.ResponseWriter, r *http.Request)

func (*SkyServer) Logout

func (s *SkyServer) Logout(w http.ResponseWriter, r *http.Request)

func (*SkyServer) NewLogin

func (s *SkyServer) NewLogin(w http.ResponseWriter, r *http.Request)

func (*SkyServer) Redirect

func (s *SkyServer) Redirect(w http.ResponseWriter, r *http.Request, oauth2Token *oauth2.Token, redirectURI string)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL