Documentation ¶
Overview ¶
Package github implements an auth provider and backend that identifies a user via github account.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config is used to configure the GitHub OAuth2 provider. If none of Organization, Teams, or Users are specified as criteria, any valid user will be accepted.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider will respond to /auth and /callback endpoints for the purposes of GitHub OAuth2 authentication.
func NewProvider ¶
NewProvider will validate Config and create a new Provider. If Enabled is false, validation will be skipped.
Click to show internal directories.
Click to hide internal directories.