github

package
v0.0.0-...-e99cc0b Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Client       *http.Client
	ClientID     string
	ClientSecret string
	Server       string
	Scope        []string
	Logger       logger.Logger
	Dumper       logger.Dumper
}

Config configures a GitHub authorization provider.

func (*Config) Handler

func (c *Config) Handler(h http.Handler) http.Handler

Handler returns a http.Handler that runs h at the completion of the GitHub authorization flow. The GitHub authorization details are available to h in the http.Request context.

Jump to

Keyboard shortcuts

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