oauth

package
v0.6.0-crypto-0.17.0.163 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

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

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