github

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: Apache-2.0 Imports: 9 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package github signs users in with their GitHub account.

Index

Constants

View Source
const ProviderName = "github"

ProviderName is stored with GitHub users and reported as sign in method.

Variables

This section is empty.

Functions

func New added in v1.2.0

func New(db *gorm.DB, s oauthflow.Settings) (*oauthflow.Flow, error)

New returns the sign in with the public GitHub.

func NewWithEndpoints added in v1.2.0

func NewWithEndpoints(db *gorm.DB, e Endpoints, s oauthflow.Settings) (*oauthflow.Flow, error)

NewWithEndpoints returns the sign in with a GitHub at the given URLs.

Types

type Endpoints added in v1.2.0

type Endpoints struct {
	AuthURL  string
	TokenURL string
	// APIURL is the base URL of the REST API, with a trailing slash.
	APIURL string
}

Endpoints are the URLs of GitHub; they differ only for GitHub Enterprise and for tests.

Jump to

Keyboard shortcuts

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