github

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: BSD-3-Clause 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