oauth

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const ClientIdEnv = "GITHUBOAUTH_CLIENTID"
View Source
const ClientSecretEnv = "GITHUBOAUTH_CLIENTSECRET"
View Source
const UserContextKey = "userId"

Variables

This section is empty.

Functions

func GithubOAuth

func GithubOAuth() gin.HandlerFunc

func ReadConfig

func ReadConfig() (err error)

Types

type TokenSource

type TokenSource struct {
	AccessToken string
}

func (*TokenSource) Token

func (t *TokenSource) Token() (*oauth2.Token, error)

Jump to

Keyboard shortcuts

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